acl-org / acl-org/acl-anthology

Duplicate namespec in Person.namespecs()

未关闭
#8,283 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug python-library
主要语言
Python
星标
797
派生
408
平均合并
3 天 19 小时
30 天内合并 PR
36

描述

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?

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at the Person.namespecs() entry point and reproduce the examples for Shay B. Cohen using both old-style and new-style IDs. Trace why a volume's frontmatter produces two identical namespecs with the volume as parent instead of one associated with the frontmatter Paper. Done means each namespec is listed once with the correct parent in both cases.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。