docling-project / docling-project/docling

Standalone equations are partially confused with regular text items

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

Description

### Bug
The layout detector wrongly classifies some obvious equations as text items. The post-processing needs to be improved to resolve these cases better when there are competing proposals on the same element with different labels and confidences.

### Steps to reproduce

Convert the provided example PDF and observe missed formulas.
[code_and_formulas_2.pdf](https://github.com/user-attachments/files/18394756/code_and_formulas_2.pdf)

### Docling version

```

Docling version: 2.15.1
Docling Core version: 2.14.0
Docling IBM Models version: 3.1.2
Docling Parse version: 3.0.0
```
### Python version
Any

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.