Repository navigation
Release 0.9.3: ORCID iDs, corresponding author, evaluator v7, DOI rules, link hyphen - #299
Conversation
…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.
…enceverse/bibr into claude/release-0.9.3 # Conflicts: # CHANGELOG.md
…om/scienceverse/bibr into claude/release-0.9.3 # Conflicts: # CHANGELOG.md
…cienceverse/bibr into claude/release-0.9.3 # Conflicts: # CHANGELOG.md
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).
|
The rule for shipping 0.9.3, written before any run of the comparison started (sha256 Agreed with Jakub on 2026-11-29 ~21:14 CET ("Not worse, fixes show"). Builds
Data and routes
Scoring
Headline fieldspapers fully right (v7 pass: title_soft >= 0.9, doi_match = 1, authors_fullname_f1 >= 0.9, ref_matching_f1 >= 0.8, The rule0.9.3 ships (tag v0.9.3, PyPI, container, Platform, demo) if BOTH:
Otherwise 0.9.2 ships alone and the report says which condition failed. Papers with no export or abstained, and every |
Codecov Report❌ Patch coverage is 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:
|
|
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 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
The fixes
Other fields, v7
The Dev hub's three sets (audience_eval200, audience_ci60, gate192: 450 development papers, text layer):
The sealed Merging with a merge commit, so that #292, #293 and #294 show as merged. |
|
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 The rerun. 0.9.3's GPU build was put back, so both environments load What changed.
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. |
0.9.3: main plus #294, #292 and #293, with the version set to 0.9.3.
nvidia-smicall for a card the run cannot use) and Pin the 4B extractor retrained on JATS-labelled front-matter rows #298 (the retrained 4B extractor).Each pull request is merged here with its own merge commit. Their branches are unchanged. The only conflicts were in the
[Unreleased]part ofCHANGELOG.md, and every entry is kept, under[0.9.3] - 2026-11-30. The last commit sets the version inpyproject.toml,uv.lockandCITATION.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:--fast, scored with metrics versions 7 and 5;The rule for shipping 0.9.3 is written down before any run finishes. It ships if:
Otherwise 0.9.2 ships alone. The numbers will be added here.