Repository navigation
修复四位 arXiv 编号识别与过长数字误截断 - #1
Merged
Merged
Conversation
hao2530
marked this pull request as ready for review
November 9, 2026 14:27
Contributor
|
已在最新 main 合并结果 ce1a9df 上复跑 Linux 全量 unittest:57/57 通过。Windows 首轮存在 fcntl/默认编码限制,未计为通过。合并结果已推送;本 PR 没有远端 checks。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
文章识别和独立论文验证脚本中的现代 arXiv 正则只接受五位序号,导致
arXiv:1409.0473这类四位序号无法进入确定性的论文识别链路。arXiv 官方标识规范规定 2007-04 至 2014-12 使用四位序号,2015-01 起使用五位序号。本次修复覆盖两种形式,不引入额外模型调用。
修改
fastinsight/article.py和scripts/verify_paper.py,接受四位或五位现代编号。验证与范围
PYTHONDONTWRITEBYTECODE=1 python3 -B -m unittest discover -s tests -v;git diff --check通过。协作与状态
提交前使用 gh 复核:默认分支仍为
4dd0f14,仅有 main,无开放 PR 或可见重叠分支;公开信息无法排除私有或线下工作。先以 draft 提交,独立评审完成后转 ready for review。不变更发布路径、凭据或运行配置,不代表可以跳过维护者审查直接合并。
独立评审(2026-11-09)