docling-project / docling-project/docling

LayoutPostprocessor._handle_cross_type_overlaps seems to be a no-op

Open
#2,143 2 comments 0 reactions 0 assignees View on GitHub
question triage/close-stale
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Question

In [layout_postprocessor.py](https://github.com/docling-project/docling/blob/13865c06f5c564b9e57f3dbb60d26e60c75258b6/docling/utils/layout_postprocessor.py#L378), the deduplication logic between special_clusters and regular_clusters is guarded by:

if regular.label == DocItemLabel.TABLE:
...

This block is only executed when a TABLE exists in regular_clusters. So deduplication (e.g. for KEY_VALUE_REGION) never runs otherwise.

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.