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
{{ message }}
Repository navigation
catch_overlapping_and_nested_bboxes keeps part of the element index in the category from element 100 on #4512
catch_overlapping_and_nested_bboxes labels each element f"{ix}. {element.category}", where ix counts across the whole document, and identify_overlapping_or_nesting_case recovers the category with type1[3:].strip() (unstructured/utils.py:503-504). From element 100 on, the category keeps part of the index: . Table for 100 to 999, 0. Table from 1000. Partitioning output does not change. The strings in the overlap report do, in overlapping_elements and overlapping_case.
$ python repro.py # at ddf4453, Python 3.13.15
0 [(['Table(ix=0)', 'Title(ix=1)'], 'nested Title in Table')]
100 [(['. Table(ix=100)', '. Title(ix=101)'], 'nested . Title in . Table')]
1000 [(['0. Table(ix=1000)', '1. Title(ix=1001)'], 'nested 1. Title in 0. Table')]
Splitting on the first ". " in those two lines fixes it and leaves the label construction in catch_overlapping_and_nested_bboxes, which #4445 edits, alone.
@cragwolfe, would you take a pull request with that change and the 100 and 1000 cases as tests?
Activity
jipeng6036-del commentedon Oct 6, 2026
I'll take this. Opened a PR that splits the overlap labels on the first
.so indexes 100 and 1000 keep the category: https://github.com/Unstructured-IO/unstructured/pull/