File size: 2,074 Bytes
9a3713b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: apache-2.0
---

# Regression Dataset for [`docling-parse`](https://github.com/docling-project/docling-parse)

This repository contains the reference dataset used as a regression test corpus for
[`docling-parse`](https://github.com/docling-project/docling-parse).

Its purpose is to make parser and renderer changes safe: when behavior changes in
[`docling-parse`](https://github.com/docling-project/docling-parse), the test
suite can compare the current output against the expected artifacts stored in this
dataset.

## What this dataset is used for

The dataset serves two related parts of the
[`docling-parse`](https://github.com/docling-project/docling-parse) test suite:

- `parse`: PDF parsing outputs are checked against stored ground-truth structures,
  extracted content, and document-specific regression fixtures.
- `renderer`: rendering outputs are checked against stored render instructions,
  bitmap artifacts, and page images.

Reference test code is included in this repository under
`_docling_parse/_tests`, in particular:

- `_docling_parse/_tests/test_parse.py`
- `_docling_parse/_tests/test_renderer.py`

## Repository contents

The dataset is organized into a few main groups:

- `regression/`: source PDF files used for regression coverage.
- `groundtruth/`: expected parse outputs for selected pages and documents.
- `groundtruth_renderer/`: expected renderer outputs such as instruction JSON,
  bitmap metadata, exported bitmap files, and full-page images.
- `cases/`, `errors/`, `synthetic/`: additional fixtures covering focused edge
  cases, failure scenarios, and synthetic test inputs.

## Why this exists

PDF parsing and rendering are both sensitive to small implementation changes.
This dataset helps detect unintended regressions in:

- text extraction
- layout and geometry
- annotations, forms, and shapes
- bitmap extraction
- page rendering instructions

In short, this repository is the regression baseline for both the `parse` and the
`renderer` parts of [`docling-parse`](https://github.com/docling-project/docling-parse).