acl-org / acl-org/acl-anthology

Duplicate namespec in Person.namespecs()

Aberta
#8,283 2 comentários 0 reações 0 responsáveis Ver no GitHub
bug python-library
Linguagem predominante
Python
Estrelas
796
Forks
408
Merge médio
3d 13h
PRs com merge (30d)
34

Descrição

When listing a Person's namespecs, if there is a volume with frontmatter, 2 namespecs have the volume as their `parent` while none have the frontmatter Paper.

This happens for both old-style and new-style IDs:

```py
>>> p = anthology.get_person('shay-b-cohen')
>>> [ns for ns in p.namespecs() if ns.parent.full_id=='W15-15']
[NameSpecification(Name('Shay', 'Cohen'), id='shay-b-cohen'), NameSpecification(Name('Shay', 'Cohen'), id='shay-b-cohen')]
>>> [ns for ns in p.namespecs() if ns.parent.full_id=='W15-1500']
[]
>>> [ns for ns in p.namespecs() if ns.parent.full_id=='2024.scalellm-1']
[NameSpecification(Name('Shay', 'Cohen'), id='shay-b-cohen'), NameSpecification(Name('Shay', 'Cohen'), id='shay-b-cohen')]
>>> [ns for ns in p.namespecs() if ns.parent.full_id=='2024.scalellm-1.0']
[]
```

In fact these are identical namespecs:

```py
>>> a, b = [ns for ns in p.namespecs() if ns.parent.full_id=='W15-15']
>>> a is b
True
```

From a user perspective, this is confusing—why list the same namespec twice?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.