Rewrite card: document parsing positioning, quick start, licence in plain words
Browse files
README.md
CHANGED
|
@@ -22,6 +22,8 @@ tags:
|
|
| 22 |
- ocr
|
| 23 |
- rag
|
| 24 |
- ground-truth
|
|
|
|
|
|
|
| 25 |
configs:
|
| 26 |
- config_name: default
|
| 27 |
default: true
|
|
@@ -38,15 +40,22 @@ configs:
|
|
| 38 |
path: data/share_alike/train.jsonl
|
| 39 |
---
|
| 40 |
|
| 41 |
-
# PDFluent PDF
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
##
|
| 50 |
|
| 51 |
```python
|
| 52 |
import json
|
|
@@ -71,6 +80,18 @@ from huggingface_hub import hf_hub_download
|
|
| 71 |
pdf_path = hf_hub_download(repo, row["asset"], repo_type="dataset")
|
| 72 |
```
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
## Fields
|
| 75 |
|
| 76 |
Each row links to a PDF page asset by SHA-256. annotation_json is a string because page, scan and formula ground truth schemas differ.
|
|
@@ -108,6 +129,14 @@ Our annotations in `default` are CC BY 4.0: credit 'Innovation Trigger B.V., PDF
|
|
| 108 |
|
| 109 |
Mandatory credit for `default`: **Innovation Trigger B.V., PDFluent ground-truth annotations (2026)**, https://pdfluent.com. Keep the credit, the licence link and an indication of your changes. Per-document paper credit is in [ATTRIBUTION.tsv](ATTRIBUTION.tsv). The package as a whole is mixed-source and has no blanket licence; check the config you use.
|
| 110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
## Citation
|
| 112 |
|
| 113 |
```bibtex
|
|
@@ -125,9 +154,11 @@ Mandatory credit for `default`: **Innovation Trigger B.V., PDFluent ground-truth
|
|
| 125 |
|
| 126 |
- Website: https://pdfluent.com
|
| 127 |
- Documentation: https://pdfluent.com/docs
|
| 128 |
-
-
|
| 129 |
- SDK source and releases: https://github.com/pdfluent/pdfluent-sdk
|
|
|
|
| 130 |
- Organisation: https://huggingface.co/PDFluent
|
| 131 |
- Formula recognition model: https://huggingface.co/PDFluent/formula-recognition-onnx
|
| 132 |
- Heading level classifier: https://huggingface.co/PDFluent/pdf-heading-level-classifier
|
| 133 |
-
- Layout ground-truth
|
|
|
|
|
|
| 22 |
- ocr
|
| 23 |
- rag
|
| 24 |
- ground-truth
|
| 25 |
+
- pdf-to-markdown
|
| 26 |
+
- document-parsing
|
| 27 |
configs:
|
| 28 |
- config_name: default
|
| 29 |
default: true
|
|
|
|
| 40 |
path: data/share_alike/train.jsonl
|
| 41 |
---
|
| 42 |
|
| 43 |
+
# PDFluent PDF Document Layout Ground Truth Dataset
|
| 44 |
|
| 45 |
+
Block-level layout annotations for born-digital PDFs (headings, paragraphs, tables, reading order) with LaTeX formulas and scan pages. For researchers and developers building document parsing, RAG tools, and LLM pipelines. Made by the team behind PDFluent SDK 1.3.0, which scores the highest overall on opendataloader-bench of the engines on its public leaderboard*.
|
| 46 |
|
| 47 |
+
\* Measured with the benchmark's own harness and evaluator on its 200 documents, PDFluent SDK 1.3.0, `quality="auto"` with `keep_furniture=True`, on Linux (CPU only), 29 October 2026: 0.9168 overall against 0.907 for opendataloader [hybrid], 0.885 for nutrient and 0.882 for docling. Competitor figures are taken from the benchmark's public README (read 2 November 2026), not re-run by us (our own re-run of opendataloader [hybrid] on 28 October 2026 gave 0.9068). PDFluent is not on that leaderboard; the results are submitted in a pull request: https://github.com/opendataloader-project/opendataloader-bench/pull/37. Development was optimised for this benchmark among its targets. The scores are measured on the benchmark's own 200 documents. The 19-measure result on our own held-out half and the separate checks are on pdfluent.com/benchmarks. The scores come from a release candidate wheel of 1.3.0 that reported version 1.2.0. Speed is not published. The run keeps page headers and footers, because the benchmark's ground truth counts them as content. The difference is one run without a confidence interval.
|
| 48 |
|
| 49 |
+
## Use it in two lines
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from datasets import load_dataset
|
| 53 |
+
pages = load_dataset("PDFluent/pdf-document-layout-ground-truth", "default", split="train")
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
The PDF behind each row is in this repository at the path in the `asset` field.
|
| 57 |
|
| 58 |
+
## More examples
|
| 59 |
|
| 60 |
```python
|
| 61 |
import json
|
|
|
|
| 80 |
pdf_path = hf_hub_download(repo, row["asset"], repo_type="dataset")
|
| 81 |
```
|
| 82 |
|
| 83 |
+
## What you get
|
| 84 |
+
|
| 85 |
+
- CC BY 4.0 annotations for born-digital PDFs (free for commercial use with attribution)
|
| 86 |
+
- FinTabNet scans under CDLA-Permissive-1.0 terms
|
| 87 |
+
- CC BY-SA 4.0 config for share-alike projects
|
| 88 |
+
- Evaluate layout analysis, table extraction, and heading detection models
|
| 89 |
+
- Lightly fine-tune formula recognition and reading order systems
|
| 90 |
+
|
| 91 |
+
## What is in it
|
| 92 |
+
|
| 93 |
+
The dataset has three configs. `default`: born-digital PDF pages with block-level layout annotations (headings, paragraphs, tables) and display-formula LaTeX. `third_party_scans`: scan pages from FinTabNet, with IBM's ground truth. `share_alike`: pages from CC BY-SA papers, with annotations under CC BY-SA.
|
| 94 |
+
|
| 95 |
## Fields
|
| 96 |
|
| 97 |
Each row links to a PDF page asset by SHA-256. annotation_json is a string because page, scan and formula ground truth schemas differ.
|
|
|
|
| 129 |
|
| 130 |
Mandatory credit for `default`: **Innovation Trigger B.V., PDFluent ground-truth annotations (2026)**, https://pdfluent.com. Keep the credit, the licence link and an indication of your changes. Per-document paper credit is in [ATTRIBUTION.tsv](ATTRIBUTION.tsv). The package as a whole is mixed-source and has no blanket licence; check the config you use.
|
| 131 |
|
| 132 |
+
## Licence in plain words
|
| 133 |
+
|
| 134 |
+
Default config uses our CC BY 4.0 annotations (credit line: Innovation Trigger B.V., PDFluent ground-truth annotations (2026)). Third-party scans follow CDLA-Permissive-1.0 terms. Share-alike config requires CC BY-SA 4.0 for derivatives.
|
| 135 |
+
|
| 136 |
+
## Try PDFluent
|
| 137 |
+
|
| 138 |
+
Load this dataset in two lines of code. Run the PDFluent SDK on the same PDFs and diff its Markdown against the annotations. See pdfluent.com/docs.
|
| 139 |
+
|
| 140 |
## Citation
|
| 141 |
|
| 142 |
```bibtex
|
|
|
|
| 154 |
|
| 155 |
- Website: https://pdfluent.com
|
| 156 |
- Documentation: https://pdfluent.com/docs
|
| 157 |
+
- SDK on PyPI: https://pypi.org/project/pdfluent/
|
| 158 |
- SDK source and releases: https://github.com/pdfluent/pdfluent-sdk
|
| 159 |
+
- Licence: https://pdfluent.com/license
|
| 160 |
- Organisation: https://huggingface.co/PDFluent
|
| 161 |
- Formula recognition model: https://huggingface.co/PDFluent/formula-recognition-onnx
|
| 162 |
- Heading level classifier: https://huggingface.co/PDFluent/pdf-heading-level-classifier
|
| 163 |
+
- Layout ground-truth dataset: https://huggingface.co/datasets/PDFluent/pdf-document-layout-ground-truth
|
| 164 |
+
- Collection: https://huggingface.co/collections/PDFluent/pdfluent-document-ai-6ae99736adab8c6d90781ab5
|