Datasets:
Upload README.md with huggingface_hub
Browse files12 unmodified lines1314151617181920212223242526272829307 unmodified lines383940414243444546474849505152535455565720 unmodified lines7879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611712 unmodified lines- n<1K---# OCR Benchmark — Document Corpus93 real-world document images with multi-format ground truth, used by the[ocr-benchmark](https://github.com/ilsilfverskiold/ocr-benchmark) harness.This dataset stores the documents and a reference run — the benchmark codelives in the GitHub repo.## Dataset structure### Train split (93 rows)Each row is one document:| Column | Type | Description ||---|---|---|7 unmodified lines| `markdown_gt` | string | Ground-truth markdown (null if unavailable) || `geometry_gt` | string | Bounding-box ground truth as serialized JSON (null if unavailable) |### Supplementary filesThese are outputs from the reference benchmark run (14 engines × 93 documents)and are used by the benchmark harness for report generation and judge caching.- `results/runs/` — JSONL result records- `results/ocr_outputs/` — Raw OCR output per (engine, document, pass)- `results/schema_judge_cache/` — Cached LLM judge verdicts (schema/key_value legs)- `results/table_judge_cache/` — Cached LLM judge verdicts (tables leg)- `results/markdown_judge_cache/` — Cached LLM judge verdicts (markdown leg)- `results/judge_checklists/` — Document judge checklists (silver-GT docs)- `documents/manifest.json` — Corpus manifest with source dataset provenance- `documents/gt_limitations.json` — Known ground-truth limitations- `documents/gt_provenance.json` — Per-document GT provenance audit trail## Document types20 unmodified lines| [RVL-CDIP](https://huggingface.co/datasets/nielsr/rvl_cdip_10_examples_per_class) (Harley et al.) | 18 | Research use | Silver — Tesseract at build time; judge-only evaluation |FUNSD, IAM, and RVL-CDIP (30 of 93 docs) carry research-use or non-commercialrestrictions. If you are a rights holder and want a document removed, open anissue — it will be removed promptly.## Ground-truth provenance- **Human (75 docs)** — source dataset annotations- **Model-verified (8 docs)** — model-transcribed, cross-checked against 14-engine consensus- **Silver (11 docs)** — machine-generated (Tesseract); evaluated by LLM judge only- No GT anywhere is LLM-generated without verificationKnown limitations are recorded in `documents/gt_limitations.json`.## UsageThis dataset is meant to be used with the benchmark harness:```bashgit clone https://github.com/ilsilfverskiold/ocr-benchmarkcd ocr-benchmarkpip install -r requirements.txtpython scripts/download_data.pypython run_benchmark.py --report 20260810T130609Z```Or download supplementary files directly:```pythonfrom huggingface_hub import snapshot_downloadsnapshot_download("ilsilfverskiold/ocr-benchmark", repo_type="dataset",allow_patterns="results/**", local_dir=".")```## LicenseDocuments are excerpts from third-party datasets — see the source table abovefor per-dataset licensing. The permissive subset (MIT / CC-BY-4.0) covers 57of the 93 documents.12 unmodified lines131415161718192021222324252627287 unmodified lines36373839404142434420 unmodified lines656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311412 unmodified lines- n<1K---# OCR Benchmark — DocumentsThe 93 document images and ground truth used by the[ocr-benchmark](https://github.com/ilsilfverskiold/ocr-benchmark) harness.The benchmark code, the reference run results, and the full methodology livein the GitHub repo — this dataset is the document corpus only.## StructureOne `train` split, 93 rows, one row per document:| Column | Type | Description ||---|---|---|7 unmodified lines| `markdown_gt` | string | Ground-truth markdown (null if unavailable) || `geometry_gt` | string | Bounding-box ground truth as serialized JSON (null if unavailable) |JSON columns are stored as strings because their internal structure varies perdocument type (a tax form's schema is not a receipt's schema). Parse with`json.loads()`.## Document types20 unmodified lines| [RVL-CDIP](https://huggingface.co/datasets/nielsr/rvl_cdip_10_examples_per_class) (Harley et al.) | 18 | Research use | Silver — Tesseract at build time; judge-only evaluation |FUNSD, IAM, and RVL-CDIP (30 of 93 docs) carry research-use or non-commercialrestrictions. This dataset redistributes small excerpts solely for reproducibleresearch benchmarking, with full attribution. If you are a rights holder andwant a document removed, open an issue — it will be removed promptly.## Ground-truth provenance- **Human (75 docs)** — source dataset annotations- **Model-verified (8 docs)** — model-transcribed, cross-checked against 14-engine consensus- **Silver (11 docs)** — machine-generated (Tesseract); scored by LLM judge only, never by text metricsPer-document provenance, known limitations, and the full audit trail are in the[GitHub repo](https://github.com/ilsilfverskiold/ocr-benchmark) under`documents/` — and every benchmark run prints them before any score.## UsageLoad directly:```pythonfrom datasets import load_datasetimport jsonds = load_dataset("ilsilfverskiold/ocr-benchmark", split="train")row = ds[0]row["image"] # PIL imagegt = json.loads(row["structured_gt"]) # json_schema + true_json```Or use it through the benchmark harness, which rebuilds the on-disk corpuslayout and can rerun any engine against these documents:```bashgit clone https://github.com/ilsilfverskiold/ocr-benchmarkcd ocr-benchmarkpip install -r requirements.txtpython scripts/download_data.py # fetches this datasetpython run_benchmark.py --engines tesseract,docling --tiers easy --skip-judge```The reference benchmark results (14 engines × 93 documents × 7 legs) ship withthe GitHub repo — you only need this dataset if you want to rerun engines.## LicenseThe images are excerpts from third-party datasets and keep their originallicenses — see the source table above. The permissive subset (MIT / CC-BY-4.0)covers 57 of the 93 documents.
README.md+37-40