Skip to content

Release 0.9.3: ORCID iDs, corresponding author, evaluator v7, DOI rules, link hyphen - #299

Merged
thesanogoeffect merged 12 commits into
mainfrom
claude/release-0.9.3
Nov 30, 2026
Merged

thesanogoeffect merged 12 commits into
mainfrom
claude/release-0.9.3

Conversation

@thesanogoeffect

Copy link
Copy Markdown
Member

0.9.3: main plus #294, #292 and #293, with the version set to 0.9.3.

Each pull request is merged here with its own merge commit. Their branches are unchanged. The only conflicts were in the [Unreleased] part of CHANGELOG.md, and every entry is kept, under [0.9.3] - 2026-11-30. The last commit sets the version in pyproject.toml, uv.lock and CITATION.cff.

Merge with a merge commit, not a squash. That way #292, #293 and #294 show as merged.

Validation before merging. Tonight 0.9.3 (this branch) and 0.9.2 (4bfeebcf) both run, on the same machine, on:

  • the public JATS benchmark: 300 born-digital papers and 90 simulated scans, on the default route (RTX 5090) and on --fast, scored with metrics versions 7 and 5;
  • the Dev hub's 595-paper sets, on the Platform's text-layer route.

The rule for shipping 0.9.3 is written down before any run finishes. It ships if:

  • no headline field is lower by a counting difference on either route, the fields being papers fully right, title, DOI, authors, references and affiliations;
  • ORCID iDs and the corresponding author improve.

Otherwise 0.9.2 ships alone. The numbers will be added here.

thesanogoeffect and others added 12 commits November 24, 2026 19:09
…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.
Some publishers' PDFs write a link annotation's target with the hyphen
U+2010 where the address has "-". repair_links_from_targets compares a
printed link with the targets after squeezing out hyphens, so the printed
"https://doi.org/10.13020/1f35-rn20" matched the target
"https://doi.org/10.13020/1f35%E2%80%90rn20" and took its spelling: the
url table's href did not resolve, and the printed address became link_text.

_target now reads U+2010 and U+2011 in a target as "-", as the character
or percent-encoded, and drops a soft hyphen. The printed link is then the
target itself and is left alone. A dash or minus sign is kept, since an
address can mean one. The same reading applies to the targets of the
annotations on a table.

On the 24 BES papers of the link comparison (--fast, CPU) this changes
four url rows of 10.1111/2041-210X.13821 and nothing else.
…ences nothing can match

ref_matching_f1 was wrong in two ways no extraction could do anything about.

A gold record made from publisher XML holds an empty entry for each
reference the XML gives as plain text. The entry counted as a missed
reference and the extraction of that very reference as a spurious one, so a
perfect extraction scored below 1.0. Such an entry is now set aside from the
recall, precision and per-field denominators; the per-paper count is
ref_field_counts.gold_refs_unmatchable. A gold record may carry the printed
string as bib[].unstructured instead.

A reference printed as authors, journal, year, volume and page could only
match on first author and year, and that level read the first word of the
author string: an initial for 'J. M. Smith'. The first author is now compared
by name words, and the same year, volume and first page match at 0.8.

Two rules are stricter: a shared first initial is not a shared first author,
and the citation-string level needs the author's name as a whole word.

metrics_version goes from 5 to 7 (6 was used for another counter). On stored
predictions for the 300 papers of the public JATS benchmark the answer key
scored against itself passes 100% of both sets (96.5% and 93.0% before), and
no paper scores lower. The CHANGELOG has the per-tool shifts.
Two ways a paper lost a DOI that its pages print, both found in a uniform
sample of PubMed Central papers.

Older BioMed Central articles print the DOI once: on a line of its own after
the last reference, directly above 'Cite this article as: ...'. That line was
read as the last reference's DOI, so the paper had none and its last
reference carried the paper's. A DOI whose label opens its sentence and that
the article's citation cue follows directly is now the paper's own, unless
the citation block prints a DOI itself. A DOI that ends a reference entry
does not qualify, and a DOI the first page labels still outranks it.

A running footer prints the DOI and then the page number. Where the text
layer leaves no gap, every such page gave a DOI of its own and the real one
was rejected as cut short, so the selection abstained. Two or more header or
footer DOIs that extend one printed DOI by digits alone, with ends as close
together as page numbers, are now rejected as line_join_overrun.

Applied to the stored candidates of that sample's run, the rules give 4 of 7
papers without a DOI their DOI and change no other paper; neither applies to
any of the 300 papers of the public JATS benchmark.
The DOI entry gave an estimate from stored DOI candidates. It now also
gives what runs with --fast before and after the change measured: on the
public JATS benchmark, and on a second sample of 320 PubMed Central papers
that was not used to write the rules.

The build that was measured also carried a corresponding-author rule that is
not on this branch. That rule is in the author address pass; the DOI
selection does not read the corresponding-author flag.

The scorer entry's sentence about the uniform sample now gives counts for
168 papers scored with version 5 and version 7.
…leased

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

The automatic merge filed the note under 0.9.2, which main has already closed.
Version 0.9.3 in pyproject.toml, uv.lock and CITATION.cff, and the
Unreleased notes filed under [0.9.3] - 2026-11-30. The release carries
the retrained 4B extractor (#298), the evaluator's metrics version 7 and
the two DOI rules (#294), ORCID iDs and the corresponding author (#292)
and the typographic hyphen in link targets (#293).
@thesanogoeffect

Copy link
Copy Markdown
Member Author

The rule for shipping 0.9.3, written before any run of the comparison started (sha256 0aa9c905…, 2026-11-29T20:21:07Z):

Agreed with Jakub on 2026-11-29 ~21:14 CET ("Not worse, fixes show").

Builds

Data and routes

  • A. Public JATS benchmark jats_eval_v1: 300 born-digital papers (jats_bs_v1 200 + jats_other_v1 100) and 90 simulated scans.
    • default route: bibr batch --llm local --ocr paddle --no-crossref (bibr starts vLLM 0.32.0 itself), cold OCR cache per build;
      born-digital and scans.
    • --fast route: bibr batch --fast --device cpu --no-crossref (text layer, the shipped 100 DPI); born-digital only.
  • B. The Dev hub's sets audience_eval200, audience_ci60, gate192 (450 papers; development sets, in-sample for earlier
    rounds): the text-layer harness of the 2026-11-14 hub runs (run_tl_set_m.sh, --fast --ocr text-layer --no-equations,
    4 threads), so the numbers sit beside the 0.9.1 runs already in the hub.
  • The sealed jats_eval_v2 holdout is NOT run (kept for the plan agreed with Lisa).

Scoring

  • Primary: bibr's evaluator at metrics_version 7 (the evaluator of the 0.9.3 tree, = Fix two reference-scoring errors (metrics v7) and recover two kinds of lost DOI #294 5c74d53). Secondary: version 5
    (bibr-arena evaluate, the published scale). B is scored with the hub's own tooling (composite and per-field).
  • Paired bootstrap over papers, 10,000 resamples, seed 20260925, 95% interval.
  • A difference COUNTS when its interval excludes 0 and |difference| >= 0.005.

Headline fields

papers fully right (v7 pass: title_soft >= 0.9, doi_match = 1, authors_fullname_f1 >= 0.9, ref_matching_f1 >= 0.8,
not abstained/missing), title_soft, doi_match, authors_fullname_f1, ref_matching_f1, affiliations (similarity).

The rule

0.9.3 ships (tag v0.9.3, PyPI, container, Platform, demo) if BOTH:

  1. No headline field is lower for 0.9.3 by a counting difference on either route: A default born-digital (300),
    A default scans (90), A --fast (300), B text layer (450, the fields its scorer has). Judged under version 7;
    version 5 is reported beside it.
  2. ORCID iDs (F1) and the corresponding author (accuracy) are higher for 0.9.3 on A --fast and on A default
    born-digital (point estimates; the intervals are reported).

Otherwise 0.9.2 ships alone and the report says which condition failed. Papers with no export or abstained, and every
other field, are reported for both builds whatever the outcome. 0.9.2 is tagged in either case (decided 2026-11-29).

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.51029% with 170 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.03%. Comparing base (4bfeebc) to head (5c2badc).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #299      +/-   ##
==========================================
- Coverage   91.14%   91.03%   -0.11%     
==========================================
  Files         344      345       +1     
  Lines       73647    74575     +928     
  Branches    13667    13933     +266     
==========================================
+ Hits        67125    67891     +766     
- 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

Copy link
Copy Markdown
Member Author

Results of the overnight comparison: 0.9.3 meets the rule written before the runs, so it ships.

Both builds ran on declan the same night: one RTX 5090, each build installed from its own commit with uv sync --locked, no network. The default route started with a cold OCR cache for each build.

The intervals are paired bootstraps over papers (10,000 resamples, seed 20260925). A difference counts when its interval excludes 0 and it is at least 0.005.

Papers fully right, public JATS benchmark

0.9.2 0.9.3 difference, points [95%] papers better / worse
default route, 300 born-digital, metrics v7 97.3% 99.3% +2.0 [+0.7, +3.7] 6 / 0
default route, 300 born-digital, metrics v5 92.3% 94.3% +2.0 [+0.7, +3.7] 6 / 0
default route, 90 simulated scans, v7 94.4% 95.6% +1.1 [−2.2, +5.6] 2 / 1
--fast, 300 born-digital, v7 94.3% 95.7% +1.3 [+0.3, +2.7] 4 / 0
--fast, 300 born-digital, v5 89.3% 90.7% +1.3 [+0.3, +2.7] 4 / 0

The fixes

0.9.2 0.9.3
ORCID F1, default route (36 papers) 0.028 1.000
ORCID F1, --fast (36 papers) 0.000 0.991
Corresponding author, default route (289) 0.578 0.948
Corresponding author, --fast (289) 0.730 0.875

Other fields, v7

  • Default route, born-digital:
    • Gains that count: full author names +0.011 and exact author names +0.020.
    • Affiliations +0.013, inside the interval, so it doesn't count.
    • Title, DOI and references are unchanged.
  • Scans:
    • Affiliations +0.028, which counts.
    • One title is lower (−0.011 [−0.033, 0.000]); that doesn't count.
  • --fast: full author names +0.011 and affiliations +0.017, both counting gains. Nothing is lower.

The Dev hub's three sets (audience_eval200, audience_ci60, gate192: 450 development papers, text layer):

  • Fully right: 90.0% → 89.8%, −0.2 points [−0.7, 0.0], 0 papers better and 1 worse. That doesn't count.
  • The one paper prints doi: 10.1186/1753-2000-4-16 above "Cite this article as", the case Fix two reference-scoring errors (metrics v7) and recover two kinds of lost DOI #294's rule recovers. The answer key has no DOI for it, so the scorer counts the paper's own DOI as wrong.
  • Every field mean is otherwise identical. 0.9.3 changes the author records of 77 of the 190 gate192 papers, adding ORCID iDs and corresponding flags, which this answer key does not score.

The sealed jats_eval_v2 holdout was not run.

Merging with a merge commit, so that #292, #293 and #294 show as merged.

@thesanogoeffect
thesanogoeffect merged commit 197447e into main Nov 30, 2026
22 of 23 checks passed
@thesanogoeffect
thesanogoeffect deleted the claude/release-0.9.3 branch November 30, 2026 00:54
@thesanogoeffect

Copy link
Copy Markdown
Member Author

A correction to the 0.9.3 numbers above: they were measured with the wrong ONNX runtime, and a rerun with the right one gives the same results.

What went wrong. With --extra gpu, bibr's lock installs both onnxruntime 1.32.0 and onnxruntime-gpu 1.26.0, and the two share one directory. Whichever uv sync writes last owns it. 0.9.2's environment loaded the CUDA build, but 0.9.3's loaded the CPU build. That was visible as a throughput of 876 s against 430 s for the same 120 PDFs.

The rerun. 0.9.3's GPU build was put back, so both environments load onnxruntime-gpu 1.26.0 and their package lists are identical apart from bibr. Then every affected 0.9.3 run was repeated from a cold cache: the benchmark on both routes, the Dev hub sets on the default route, and throughput.

What changed.

  • Pass counts: identical in every set, and no paper flips between pass and fail.
  • Field values: a few papers differ in one field, within vLLM's run-to-run variation.
  • Throughput: 432 s for 0.9.3, against 430 s for 0.9.2.

The rule's verdict is unchanged, and the tables above stand.

The install hazard is not specific to 0.9.3; the lock is the same for 0.9.2. bibr notices it and prints a warning, but with the CPU build loaded the default route runs about half as fast.

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