• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grobidOrg / grobid / 29678014808

19 Jul 2026 05:20AM UTC coverage: 40.175% (-2.9%) from 43.086%
29678014808

Pull #1509

github

lfoppiano
Update TEI schemas to accept GROBID output (head/@level + missing elements)

Add the section-head @level attribute (the outline hierarchy level) to <head>.

Also bring the shipped RelaxNG schema in line with what GROBID actually emits: its
output has never validated against grobid-home/schemas/rng/Grobid.rng. Add the elements
and attributes GROBID produces but the schema omitted:
 - @coords (PDF bounding boxes) and @lang (bare variant of xml:lang, e.g. on orgName)
   on att.global, so they are accepted on every element;
 - <rs> (referencing string, e.g. funders/grants in running text) in model.phrase;
 - <funder> and <respStmt>/<resp> in model.respLike (title statement);
 - <listOrg>/<org> in model.listLike, and allowed interleaved with <div>s in <back>;
 - xsi:schemaLocation on the root <TEI>;
 - a bare pointer/reference (model.ptrLike) directly under <div> (annex markers);
 - make @url optional on <graphic> (GROBID emits graphics located only by @coords).

Validated with jing over ~275 documents (PMC, a publisher-diverse set, and the dataseer
corpus): all validate except a couple carrying malformed @target URIs extracted from
corrupt PDFs (a data issue, correctly rejected). The @level addition is mirrored to the
XSD and DTD; the element additions are RelaxNG-only because the shipped XSD has a
pre-existing non-deterministic content-model defect that prevents it from loading at all.
Pull Request #1509: Use PDF outline to correct the header hierarchy

9288 of 25724 branches covered (36.11%)

Branch coverage included in aggregate %.

19770 of 46604 relevant lines covered (42.42%)

1.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.49
/org/grobid/core/document/DocumentNode.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc