Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
1.88k
3.77k
PageID
int64
4.44M
12.3M
BarCode
stringclasses
6 values
text
stringlengths
0
5.5k
markdown
large_stringlengths
0
5.5k
docling
unknown
xml
large_stringlengths
607
449k
xml_path
stringlengths
65
69
8,992,372
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667793", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667793.xml
8,992,371
birdsofgreatbrit02butl
FOR THE PEOPLE FOR EDVCATION FOR SCIENCE LIBRARY OF THE AMERICAN MUSEUM OF NATURAL HISTORY
FOR THE PEOPLE FOR EDVCATION FOR SCIENCE LIBRARY OF THE AMERICAN MUSEUM OF NATURAL HISTORY
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667794", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667794.xml
8,992,370
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667795", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667795.xml
8,992,369
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667796", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667796.xml
8,992,368
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667797", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667797.xml
8,992,367
birdsofgreatbrit02butl
PL.V FIGS. 156—157 BRAMBLING. 158—167 LINNET. 168—171 REDPOLE. FIGS. 172—173 TWITE 174—179 BULLFINCH. 180 CROSSBILL. FIGS. 181—187 CORN-BUNTING 188—195 YELLOW BUNTING. 196—197 CIRL BUNTING.
<!-- image --> PL.V FIGS. 156—157 BRAMBLING. 158—167 LINNET. 168—171 REDPOLE. FIGS. 172—173 TWITE 174—179 BULLFINCH. 180 CROSSBILL. FIGS. 181—187 CORN-BUNTING 188—195 YELLOW BUNTING. 196—197 CIRL BUNTING.
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667798", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667798.xml
8,992,366
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667801", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667801.xml
8,992,365
birdsofgreatbrit02butl
PL. VI FIGS. 198—206 REED-BUNTING. 207—209 SNOW-BUNTING. FIGS. 210—213 STARLING. 214—215 CHOUGH. 216—217 JAY. FIGS. 218—221 MAGPIE. 222—228 JACKDAW.
<!-- image --> PL. VI FIGS. 198—206 REED-BUNTING. 207—209 SNOW-BUNTING. FIGS. 210—213 STARLING. 214—215 CHOUGH. 216—217 JAY. FIGS. 218—221 MAGPIE. 222—228 JACKDAW.
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667802", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667802.xml
8,992,364
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667805", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667805.xml
8,992,363
birdsofgreatbrit02butl
229—232 RAVEN. 233—236 CARRION CROW. 237—240 HOODED CROW. 241—244 ROOK. ��� ���
<!-- image --> 229—232 RAVEN. 233—236 CARRION CROW. 237—240 HOODED CROW. 241—244 ROOK. ��� ���
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667806", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667806.xml
8,992,362
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667809", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667809.xml
8,992,361
birdsofgreatbrit02butl
FIGS. 245—254 SKY-LARK. 255 WOODLARK. Pl ��
FIGS. 245—254 SKY-LARK. 255 WOODLARK. <!-- image --> Pl ��
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667810", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667810.xml
8,992,360
birdsofgreatbrit02butl
BIRDS OF GREAT BRITAIN AND IRELAND ORDER PASSERES, COMPLETE IN TWO VOLUMES. By ARTHUR G. BUTLER, M.B.O.U., PH.D., F.L.S., F.Z.S., F.E.S., CORRESPONDING MEMBER OF VARIOUS FOREIGN SOCIETIES, AUTHOR OF "BRITISH BIRDS' EGGS, A HANDBOOK OF BRITISH ÖOLOGY" (ILLUSTRATED BY THE AUTHOR). "FOREIGN BIRD KEEPING;" "HINTS ON ...
## BIRDS ## OF ## GREAT BRITAIN AND IRELAND ## ORDER PASSERES, COMPLETE IN TWO VOLUMES. ## By ARTHUR G. BUTLER, M.B.O.U., PH.D., F.L.S., F.Z.S., F.E.S., CORRESPONDING MEMBER OF VARIOUS FOREIGN SOCIETIES, AUTHOR OF "BRITISH BIRDS' EGGS, A HANDBOOK OF BRITISH ÖOLOGY" (ILLUSTRATED BY THE AUTHOR). "FOREIGN BIRD KEEPI...
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667813", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667813.xml
8,992,359
birdsofgreatbrit02butl
<!-- image -->
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667814", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667814.xml
8,992,358
birdsofgreatbrit02butl
This Volume contains:— 4 COLORED PLATES OF EGGS. 51 COLORED PLATES OF BIRDS. 201 PAGES OF DESCRIPTIVE TEXT. 10 PAGES OF APPENDIX. 4 PAGES OF INDEXES.
## This Volume contains:— 4 COLORED PLATES OF EGGS. 51 COLORED PLATES OF BIRDS. 201 PAGES OF DESCRIPTIVE TEXT. 10 PAGES OF APPENDIX. 4 PAGES OF INDEXES.
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667815", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667815.xml
8,992,357
birdsofgreatbrit02butl
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667816", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [], "content_layer":...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667816.xml
8,992,356
birdsofgreatbrit02butl
CONTENTS. Those market thus*, not being recognized as British Birds, are not figured. Acanthis cannabina - - - - 85 Acanthis flavirostris - - - - 81 Acanthis linaria - - - - 73 Acanthis rufescens - - - - 77 *Aedon familiaris - - - - 207 *Aedon galactods - - - - 207 Alauda arborea - - - - 188 Alauda arvensis - - ...
## CONTENTS. ## Those market thus*, not being recognized as British Birds, are not figured. Acanthis cannabina - - - - 85 Acanthis flavirostris - - - - 81 Acanthis linaria - - - - 73 Acanthis rufescens - - - - 77 *Aedon familiaris - - - - 207 *Aedon galactods - - - - 207 Alauda arborea - - - - 188 Alauda arvensi...
{ "schema_name": "DoclingDocument", "version": "1.10.0", "name": "pc-00667817", "furniture": { "self_ref": "#/furniture", "children": [], "content_layer": "furniture", "name": "_root_", "label": "unspecified" }, "body": { "self_ref": "#/body", "children": [ { "$ref"...
<?xml version="1.0" encoding="UTF-8"?> <PcGts xmlns="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19 http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19...
source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667817.xml
End of preview. Expand in Data Studio

FineBooks BHL IMPACT Ground Truth

2,165 page scans from six historical natural-history books, each paired with an expert, ~99.95%-accurate transcription and full page-layout ground truth. A benchmark for OCR, text recognition, and document layout analysis on real historical print.

This dataset is the basis of the BHL OCR Leaderboard, where open OCR models are scored against these transcriptions. As new OCR models are released, they are run through the same evaluation pipeline and added to the leaderboard.

Part of FineBooks. The ground truth is the IMPACT-BHL corpus — manually corrected OCR distributed as PRImA PAGE XML — produced in the 2011–2012 collaboration between the EU IMPACT digitisation project and BHL-Europe, and released under CC-BY 3.0. The page images come from the Biodiversity Heritage Library (BHL).

Text and layout, in one file. Every region polygon in the PAGE XML lives in the same pixel space as the shipped image — the ground truth was traced directly on the exact access scan we ship, so the boxes overlay the page with no transform (verified pixel-perfect across all six books). That makes it a benchmark for OCR / text recognition and for layout / region detection at the same time.

Multilingual historical print. English, French, German, and early-18th-century Latin across running text, tabular matter, and illustrated plate pages. One volume, a Russian entomological journal, contains occasional Cyrillic in references and footnotes; its body text is French and German. All six volumes are set in antiqua type; the corpus contains no Gothic blackletter typefaces (such as German Fraktur).

At a glance

Pages 2,165 — one row each
Books 6 natural-history titles, 1708–1913
Languages English · French · German · Latin
Ground truth ~99.95%-accurate transcription + PAGE XML layout
Coordinates aligned to the shipped image — no transform
Per-page views image · text · markdown · docling · verbatim xml
Size ≈390 MB (WebP images + metadata)
License CC-BY 3.0 — attribute IMPACT / BHL

Quick start

from datasets import load_dataset

ds = load_dataset("finebooks/bhl-impact-gt", split="train")
row = ds[0]

row["image"]     # PIL.Image — the page scan (WebP)
row["text"]      # full-page transcription, in reading order
row["markdown"]  # the same content, as Markdown
row["xml"]       # verbatim PAGE XML — region polygons overlay `image` exactly

Browse every page interactively in the Dataset Viewer above. Richer recipes — drawing the region boxes, rebuilding the structured document, joining to catalog metadata — are in Recipes.

A sample page

One page of Conchologia Iconica (conchologiaiconi05reev, PageID 8967091) — a chapter opener — has this text:

MONOGRAPH

OF THE GENUS

ACHATINA.

“Each shell, each crawling insect, holds a rank
Important in the scale of Him who framed
This scale of beings; holds a rank, which lost,
Would break the chain, and leave a gap behind,
Which Nature's self would rue!”—Stillingfleet.

and this markdown, where the three display lines are tagged as headings:

## MONOGRAPH

## OF THE GENUS

## ACHATINA.

“Each shell, each crawling insect, holds a rank
...

Text is transcribed exactly as printed — note the ligature in Stillingfleet and the curly quotation marks. Nothing is normalized; see Limitations.

Source books

Titles as recorded in the BHL / Internet Archive catalogue metadata:

Book Author Year Language Pages Internet Archive BHL item
Birds of Great Britain and Ireland, vol. 2 Butler 1907 English 341 birdsofgreatbrit02butl item/35947
Conchologia iconica, or, Illustrations of the shells of molluscous animals, vol. 5 Reeve 1849 English 648 conchologiaiconi05reev item/35904
Das Chitinskelett von Eosentomon, ein Beitrag zur Morphologie des Insektenkörpers Prell 1913 German 84 daschitinskelett00prel item/37582
Histoire naturelle des poissons, t. 10 Cuvier & Valenciennes 1835 French 516 histoirenaturell10cuvi item/25923
Piscium querelae et vindiciae Scheuchzer 1708 Latin 60 pisciumquerelaee00sche item/37459
Horae Societatis Entomologicae Rossicae, variis sermonibus in Rossia usitatis editae, t. 16 Russkoe entomologicheskoe obshchestvo 1881 French, German (Cyrillic in references) 516 trudyrusskagoent161881russ item/44806
Total 2,165

The upstream corpus also ships a 100-page mixed "random set" drawn from many books with no single clean image source. It is excluded here.

Dataset structure

One row per page. Page images are WebP files under images/ (not embedded in Parquet). metadata.parquet links each row via a file_name column that datasets resolves into the decoded image column — so load_dataset(...) returns image as the first column.

Column Type What it is
image Image (WebP) The page scan (BHL access rendition). All coordinates below are in this image's pixel space.
text string Full-page transcription in reading order. "" for plate pages with no text.
markdown large_string The same content as Markdown — headings as ##, illustrations as image placeholders, and page furniture (page numbers, running heads, signatures, catch-words) kept in place. "" for text-less pages.
docling JSON A DoclingDocument: every text and picture region, labelled (title / section-header / text / caption / footnote / page-header / page-footer) and with a bounding box, in reading order. Decodes to a Python dict — no json.loads.
xml large_string The complete PAGE XML ground truth, verbatim UTF-8 — polygons, region types, reading order, Unicode text.
xml_path string Repo-relative path to that same XML file under source/ (e.g. source/groundtruth-bhl/birdsofgreatbrit02butl_XML/pc-00667895.xml).
PageID int64 Current BHL PageID, resolved from BHL's METS. Joins to finebooks/bhl-metadata page.PageID.
BarCode string BHL item barcode (= the Internet Archive identifier). Joins to item.BarCode.

A few things worth knowing:

  • text, markdown, and docling share one reading order. They are three renderings of a single pass over the page, so their region sequence is identical by construction — see Reading order.
  • No separate "regions" column, by design. For per-region geometry and labels, read the authoritative xml, or the bounding boxes inside docling.
  • markdown keeps page furniture (Docling's furniture layer). A plain body-only export_to_markdown() drops it if you'd rather — see Recipes.
  • Tables render as sequential text blocks, not grids — the ground truth stores table columns as separate regions, with no cell structure.
  • Join-ready. PageID and BarCode use the exact column names and types from finebooks/bhl-metadata, so the two datasets join with no renaming.

Reading order

Scanned-page XML lists regions in document order, which often is not the order a human reads (it scrambles ~39% of pages). We reconstruct the true reading order, so text, markdown, and docling all flow the way you'd actually read the page — running heads on top, footnotes at the bottom, body text in sequence.

How the reading order is reconstructed

The GT provides an explicit <ReadingOrder> that sequences only the main text flow. Over the text regions, we:

  1. Follow <ReadingOrder> for the body, then re-thread those ordered regions back through the document-order slots they occupy.
  2. Place each un-ordered region (running heads, page numbers, signature-marks, captions, footnotes) by its vertical position: above the ordered body → top margin, below it → bottom margin, otherwise left inline. No region-type rules are used — page numbers sit at the head in some books and the foot in others, so coordinates decide.
  3. Merge drop-capital initials into the region that follows them (O + NE specimen…ONE specimen…).

About 19% of pages have no <ReadingOrder> and fall back to pure document order. The source PAGE XML (xml / xml_path) is always the authoritative per-region order and geometry.

How the data was built

The link from a ground-truth file to its page image is not obvious. We reconstruct it deterministically and bundle every input under source/ so the whole chain is auditable:

  1. Ground truth — the IMPACT-BHL PAGE XML (GitHub, CC-BY 3.0). Initial OCR was ABBYY FineReader, then manually re-keyed and QA'd to ~99.95% character accuracy.
  2. Book = Internet Archive item. Each GT directory name is the book's IA identifier, which for these six items is also the BHL BarCode.
  3. Page = scan leaf. GT files sorted by id map 1:1, in order, to the IA scan leaves in scandata.xml (leafNum 0…N-1). The build asserts len(GT) == len(leaves) per book.
  4. Image. Only the access leaves (addToAccessFormats=true) ship. Their running 1-based access index addresses BHL Open Data's WebP rendition: …/web/{ia_id}/{ia_id}_{access_index:04d}_full.webp.
  5. PageID. The current BHL PageID for each access page is read from the IA METS ({ia_id}_bhlmets.xml): <div ORDER=k>PageID, where ORDER == access index.

Inputs are grouped by origin under source/: groundtruth-bhl/ (GitHub), bhl-open-data/ (S3 scandata + the bucket's own docs), ia/ (archive.org METS), and bhl-eu/ (Wayback-restored BHL-Europe ⇄ IMPACT documents, including the OCR report and the random-set spreadsheet).

Reproducible. The self-contained uv script that produced this dataset ships alongside the data, so the whole repo rebuilds itself: uv run bhl_impact_gt.py.

Limitations & caveats

  • Access pages only. These books have 2,318 GT pages; the 2,165 access pages are included. The other 153 are non-access leaves (blank versos, tissue guards, covers, re-shot "Delete" duplicates) and are excluded — along with the 100-page random set.
  • pcGtsId is not a BHL PageID. The pcGtsId inside each PAGE XML (pc-…) is an IMPACT-internal sequential number that collides with unrelated current BHL pages. Always join via the PageID column, never pcGtsId.
  • (U+FFFD) means illegible, not mojibake. The ground truth uses the Unicode replacement character to mark a glyph the transcribers couldn't determine. It is part of the source XML (not introduced here) and appears on ~194 pages (1,366 times), mostly in plate captions and tables. Treat it as an explicit "unknown character" token — e.g. a wildcard in scoring — rather than stripping it or counting it as an error.
  • Historical transcription, verbatim. Text is kept as printed: archaic orthography, ligatures, long-s, Cyrillic, accents, and hyphenation at line breaks are all preserved, not normalized.
  • Image path is a newer, undocumented derivative. The WebP images come from BHL Open Data's web/ prefix, which (unlike images/, ocr/, scandata/) is not described in BHL's published bucket README. The content is the standard access rendition, but the path is not contractually documented.
  • One book has two BHL copies. histoirenaturell10cuvi exists as BHL items 25923 (the GT's scan, used here) and …cuvis/45272 (a different copy that owns the JP2 images/). We use the GT's scan via web/.

Recipes

Draw the ground-truth region boxes on the page (no transform needed — the polygons already match the image):

from lxml import etree
from PIL import ImageDraw

ns = {"pc": "http://schema.primaresearch.org/PAGE/gts/pagecontent/2010-03-19"}
img = row["image"].copy()
draw = ImageDraw.Draw(img)
for coords in etree.fromstring(row["xml"].encode()).iterfind(".//pc:Coords", ns):
    pts = [(int(p.get("x")), int(p.get("y"))) for p in coords.iterfind("pc:Point", ns)]
    if len(pts) > 1:
        draw.polygon(pts, outline="red")

Rebuild the structured document via docling-core (labels + bbox provenance):

from docling_core.types.doc import DoclingDocument
from docling_core.types.doc.document import ContentLayer

doc = DoclingDocument.model_validate(row["docling"])   # `docling` decodes to a dict
doc.export_to_markdown(                                # == row["markdown"]
    included_content_layers={ContentLayer.BODY, ContentLayer.FURNITURE})
doc.export_to_markdown()                               # body only — drops page furniture

Join to BHL catalog metadata (via PageID / BarCode):

SELECT x.PageID, x.BarCode, t.FullTitle, p.SequenceOrder, p.PageNumber
FROM 'hf://datasets/finebooks/bhl-impact-gt/metadata.parquet' x
JOIN 'hf://datasets/finebooks/bhl-metadata/data/page/*.parquet'  p USING (PageID)
JOIN 'hf://datasets/finebooks/bhl-metadata/data/item/*.parquet'  i USING (ItemID)
JOIN 'hf://datasets/finebooks/bhl-metadata/data/title/*.parquet' t USING (TitleID)
LIMIT 10;

Sources & license

License: CC-BY 3.0. The IMPACT-BHL ground-truth PAGE XML is released by the IMPACT project under CC-BY 3.0 — attribute IMPACT / Biodiversity Heritage Library. The page images are BHL Open Data; consult per-item rights in finebooks/bhl-metadata (item config) before reusing individual images.

Citation

IMPACT Centre of Competence & Biodiversity Heritage Library (2012). IMPACT-BHL ground truth (PRImA PAGE XML, CC-BY 3.0). Produced in the IMPACT ⇄ BHL-Europe collaboration. https://github.com/impactcentre/groundtruth-bhl

Downloads last month
32

Space using finebooks/bhl-impact-gt 1

Article mentioning finebooks/bhl-impact-gt