Commit ·
9a3713b
1
Parent(s): 0552d71
updated the README
Browse filesSigned-off-by: Peter Staar <taa@zurich.ibm.com>
README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# Regression Dataset for [`docling-parse`](https://github.com/docling-project/docling-parse)
|
| 6 |
+
|
| 7 |
+
This repository contains the reference dataset used as a regression test corpus for
|
| 8 |
+
[`docling-parse`](https://github.com/docling-project/docling-parse).
|
| 9 |
+
|
| 10 |
+
Its purpose is to make parser and renderer changes safe: when behavior changes in
|
| 11 |
+
[`docling-parse`](https://github.com/docling-project/docling-parse), the test
|
| 12 |
+
suite can compare the current output against the expected artifacts stored in this
|
| 13 |
+
dataset.
|
| 14 |
+
|
| 15 |
+
## What this dataset is used for
|
| 16 |
+
|
| 17 |
+
The dataset serves two related parts of the
|
| 18 |
+
[`docling-parse`](https://github.com/docling-project/docling-parse) test suite:
|
| 19 |
+
|
| 20 |
+
- `parse`: PDF parsing outputs are checked against stored ground-truth structures,
|
| 21 |
+
extracted content, and document-specific regression fixtures.
|
| 22 |
+
- `renderer`: rendering outputs are checked against stored render instructions,
|
| 23 |
+
bitmap artifacts, and page images.
|
| 24 |
+
|
| 25 |
+
Reference test code is included in this repository under
|
| 26 |
+
`_docling_parse/_tests`, in particular:
|
| 27 |
+
|
| 28 |
+
- `_docling_parse/_tests/test_parse.py`
|
| 29 |
+
- `_docling_parse/_tests/test_renderer.py`
|
| 30 |
+
|
| 31 |
+
## Repository contents
|
| 32 |
+
|
| 33 |
+
The dataset is organized into a few main groups:
|
| 34 |
+
|
| 35 |
+
- `regression/`: source PDF files used for regression coverage.
|
| 36 |
+
- `groundtruth/`: expected parse outputs for selected pages and documents.
|
| 37 |
+
- `groundtruth_renderer/`: expected renderer outputs such as instruction JSON,
|
| 38 |
+
bitmap metadata, exported bitmap files, and full-page images.
|
| 39 |
+
- `cases/`, `errors/`, `synthetic/`: additional fixtures covering focused edge
|
| 40 |
+
cases, failure scenarios, and synthetic test inputs.
|
| 41 |
+
|
| 42 |
+
## Why this exists
|
| 43 |
+
|
| 44 |
+
PDF parsing and rendering are both sensitive to small implementation changes.
|
| 45 |
+
This dataset helps detect unintended regressions in:
|
| 46 |
+
|
| 47 |
+
- text extraction
|
| 48 |
+
- layout and geometry
|
| 49 |
+
- annotations, forms, and shapes
|
| 50 |
+
- bitmap extraction
|
| 51 |
+
- page rendering instructions
|
| 52 |
+
|
| 53 |
+
In short, this repository is the regression baseline for both the `parse` and the
|
| 54 |
+
`renderer` parts of [`docling-parse`](https://github.com/docling-project/docling-parse).
|