docling-project / docling-project/docling

Bug: Misinterpretation of Table Headers and Pre-Table Text

Open
#525 0 comments 0 reactions 1 assignee Claimed by @maxmnemonic View on GitHub
bug layout
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug

1. Table headers are being mistakenly treated as cell values.
2. The text before the table is being incorrectly used as the column header for all columns.

_**This issue occurs with both the accurate and fast table modes.**_

### Steps to reproduce
1. Parse this PDF: [test-docling-parser-11.pdf](https://github.com/user-attachments/files/18033822/test-docling-parser-11.pdf)

#### Table in PDF:
![image](https://github.com/user-attachments/assets/2cad6e6b-0601-48be-93b8-472a105fed8b)

#### Parsed Table:
![table-mistake](https://github.com/user-attachments/assets/a4ef2e64-c027-4fc2-ad20-89bd9e4c39dd)

### Docling version
- Docling version: 2.8.3
- Docling Core version: 2.7.0
- Docling IBM Models version: 2.0.7
- Docling Parse version: 2.1.2

### Python version
Python 3.11.8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.