You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pdf): emit padded tables + align groundtruth to live docling
PDF tables were compact to match the stale committed groundtruth, but
conformance.sh (and DOCX/HTML) score against live published docling, which uses
padded GitHub tables — so the compact rows showed as cosmetic diffs (e.g.
2305-pg9 = 14 vs live). The PDF backend no longer opts into compact tables, so it
emits the padded format like every other backend.
Regenerated the committed PDF groundtruth from live docling (the conformance
reference) via scripts/docling_convert.py, so the fixtures and conformance.sh
agree. Result vs live docling: 2305-pg9 → EXACT (4/14), and the table papers drop
sharply (2203 321→275, 2206 304→276, 2305v1 94→68) now that the table format
matches. multi_page/code_and_formula/picture_classification stay exact.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: tests/data/pdf/groundtruth/2203.01017v2.md
+59-43Lines changed: 59 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,17 @@ The occurrence of tables in documents is ubiquitous. They often summarise quanti
14
14
15
15
## a. Picture of a table:
16
16
17
-
| 1 |
18
-
| - |
17
+
| 1 |
18
+
|-----|
19
19
20
20
7
21
21
22
-
| 0 |1 2 1 | 1 2 1 | 1 2 1 |
23
-
| - | - | - | - |
24
-
| 3 4 |5 | 6 | 7 |
25
-
| 9 13 | 10 | 11 | 12 |
26
-
| 8 2 |14 | 15 | 16 |
27
-
| 17 |18 | 19 | 20 |
22
+
| 0 |1 2 1 |1 2 1 | 1 2 1 |
23
+
|------|---------|---------|---------|
24
+
| 3 4 |5 |6 | 7 |
25
+
| 9 13 |10 |11 | 12 |
26
+
| 8 2 |14 |15 | 16 |
27
+
| 17 |18 |19 | 20 |
28
28
29
29
Figure 1: Picture of a table with subtle, complex features such as (1) multi-column headers, (2) cell with multi-row text and (3) cells with no content. Image from PubTabNet evaluation set, filename: 'PMC2944238 004 02'.
30
30
@@ -85,14 +85,14 @@ In this regard, we have prepared four synthetic datasets, each one containing 15
85
85
86
86
Table 1: Both 'Combined-Tabnet' and 'CombinedTabnet' are variations of the following: (*) The CombinedTabnet dataset is the processed combination of PubTabNet and Fintabnet. (**) The combined dataset is the processed combination of PubTabNet, Fintabnet and TableBank.
Tab. 1 summarizes the various attributes of the datasets.
98
98
@@ -166,18 +166,18 @@ where T a and T b represent tables in tree structure HTML format. EditDist denot
166
166
167
167
Structure. As shown in Tab. 2, TableFormer outperforms all SOTA methods across different datasets by a large margin for predicting the table structure from an image. All the more, our model outperforms pre-trained methods. During the evaluation we do not apply any table filtering. We also provide our baseline results on the SynthTabNet dataset. It has been observed that large tables (e.g. tables that occupy half of the page or more) yield poor predictions. We attribute this issue to the image resizing during the preprocessing step, that produces downsampled images with indistinguishable features. This problem can be addressed by treating such big tables with a separate model which accepts a large input image size.
Cell Content. In this section, we evaluate the entire pipeline of recovering a table with content. Here we put our approach to test by capitalizing on extracting content from the PDF cells rather than decoding from images. Tab. 4 shows the TEDs score of HTML code representing the structure of the table along with the content inserted in the data cell and compared with the ground-truth. Our method achieved a 5.3% increase over the state-of-the-art, and commercial solutions. We believe our scores would be higher if the HTML ground-truth matched the extracted PDF cell content. Unfortunately, there are small discrepancies such as spacings around words or special characters with various unicode representations.
197
197
198
198
Table 4: Results of structure with content retrieved using cell detection on PubTabNet. In all cases the input is PDF documents with cropped tables.
0 commit comments