Skip to content

Read ORCID iDs from the page and from the ORCID icon's link, and find the corresponding author in more layouts - #292

Open
thesanogoeffect wants to merge 3 commits into
mainfrom
fix/orcid-and-corresponding-author
Open

thesanogoeffect wants to merge 3 commits into
mainfrom
fix/orcid-and-corresponding-author

Conversation

@thesanogoeffect

@thesanogoeffect thesanogoeffect commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

What this fixes

The 0.9.2 evaluation on the public JATS benchmark showed two weak fields: ORCID iDs (F1 0.03, where GROBID 0.9.1 gets 0.41) and the corresponding author (0.58 on the default route and 0.76 with --fast, where GROBID gets 0.62).

  • ORCID iDs. A new harvester, shared by the default route and --fast, reads an author's iD from wherever the paper prints it outside the reference list, and from the link behind the ORCID icon in a born-digital PDF. Most publishers print only the icon, so the iD was nowhere in the text bibr read. An iD needs a valid check digit, goes to the author named beside it, and is never taken from an "Edited by" or "Reviewed by" block.
  • Corresponding author. The flag and the e-mail address are also read from correspondence blocks above the title, in a sidebar, after the abstract, in a first-page footnote, on a "CONTACT" line and in a statement at the end of the paper. An address split by a line break is joined, and two authors with the same family name are told apart by given name.

The second commit replaces the real authors' names, e-mail addresses and ORCID iDs that the new tests and comments quoted with made-up ones of the same shape. It changes no code path: under bibr/ it touches comments and docstrings only.

Measured

--fast on the CPU (200 DPI), 300 born-digital papers of the public benchmark, the 0.9.2 release branch (aee4224d) with and without this change, same machine, environment and scorer as the release evaluation of 24 November:

before after GROBID 0.9.1
ORCID iDs, F1 (36 papers that print them) 0.000 0.987 0.408
ORCID iDs, F1 (204 papers; an iD the PDF carries as text or as the icon's link) 0.000 0.988 0.686
Corresponding author, exact match (289 papers) 0.758 0.889 0.616
Papers fully right 0.907 0.907 0.617
  • The corresponding author is right on 41 more papers and wrong on 3 that were right.
  • Title, DOI, author names, abstract, keywords, affiliations and every reference score are the same for each of the 300 papers.
  • The second ORCID row uses an answer key that also keeps an iD found as a link target in the PDF; the benchmark's own key keeps only iDs printed as text.

At the 100 DPI that 0.9.2 ships with, the same comparison gives ORCID iDs 0.000 to 0.991 and the corresponding author 0.730 to 0.875 (46 papers better, 4 worse). There it also changes author names: five Psychological Medicine papers go from 0.0 to 0.6 F1 on full names to 1.0, with their affiliations, and papers fully right go from 89.3% to 90.7%. No paper gets worse on names or affiliations, and no other field changes.

What is not measured yet

  • These are not held-out numbers. The fix was written from failures on these 300 papers. A new set of 305 papers, frozen on 26 November before any tool was run on it, will test it.
  • The default route (local models on a GPU) has not been rerun with this change: the benchmark machine's GPU was in use. The harvesters run after extraction on both routes, so a gain is expected there too, but it is not measured.

Tests

463 tests in tests/extract/test_author_orcid_harvester.py, tests/extract/test_orcid_corresponding_wiring.py, tests/extract/test_author_email_harvester.py and tests/front_tagger pass locally; ruff check and ruff format --check are clean on the touched files.

Merge order and the red check

"Dependency and source security" fails here for a reason that is on main: the audit exception for PYSEC-2026-3447 expired on 23 November, so the job stops before it audits anything. #285 (Prepare 0.9.2) renews the exceptions. Merge #285 first, then merge main into this branch: the check goes green, and this PR's release note, now under [Unreleased], has to move into the 0.9.2 section that #285 creates.

…t paths

Addresses the two validation setbacks in jats_eval_v1:
- ORCID iDs: add AuthorOrcidHarvester (shared by default LLM and --fast)
  with ISO 7064 MOD 11-2 checksum validation, document-wide non-reference
  printed-ORCID harvesting (rejoining wrapped IDs, shared-surname and
  initials attribution, editorial guards), PDF URI-link icon harvesting
  via existing pdf_uri_links + ref_page_lines, and [ORCID identifiers]
  context injection into authors_text.
- Corresponding author: restore page-1 author-metadata headings in
  FrontMatterResolution (without seeding false title records), preserve
  pre-title sidebars and post-abstract correspondence blocks in
  render_author_context, feed single-record page-1 correspondence footnotes
  into authors_text and AuthorEmailHarvester, and add Taylor & Francis
  CONTACT cues, Nature Communications back-matter correspondence statements,
  wrapped/space-split TLD email repair and truncated-email upgrades,
  shared-surname disambiguation, byline-star / dropped-star fallbacks, and
  corresponding-author name fallback in front_tagger.
…he release note

The fixtures and comments of the ORCID and corresponding-author fix quoted real authors' names, e-mail addresses and ORCID iDs. They are replaced by made-up ones of the same shape (the iDs keep a valid check digit, in a block ORCID never assigns). No code path changes: the diff under bibr/ is comments and docstrings only.
@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.53846% with 168 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.03%. Comparing base (4bfeebc) to head (361e286).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #292      +/-   ##
==========================================
- Coverage   91.14%   91.03%   -0.12%     
==========================================
  Files         344      345       +1     
  Lines       73647    74520     +873     
  Branches    13667    13921     +254     
==========================================
+ Hits        67125    67836     +711     
- Misses       4041     4116      +75     
- Partials     2481     2568      +87     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

thesanogoeffect added a commit that referenced this pull request Nov 27, 2026
…ix of #292

With the fix the 100 DPI run gets 90.5% and 91.0% of the papers fully right, as the 200 DPI run does: five Psychological Medicine papers recover their author names.
…leased

The automatic merge filed the note under 0.9.2, which main has already closed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant