Unstructured-IO / Unstructured-IO/unstructured-inference

partition_groups_from_regions misses sources

Open
#270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
209
Forks
73
PR merge metrics
No merged PRs in 30d

Description

partition_groups_from_regions function in unstructured-inference > inference > layoutelement.py is missing source types, producing None sources in the resulting TextRegions. This is due to the transformation of TextRegions into Rectangles to be able to use intersections.

Definition of done

  • Original sources are kept for all resulting TextRegions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in inference/layoutelement.py at partition_groups_from_regions and inspect the conversion of TextRegions into Rectangles for intersections. Verify that every resulting TextRegion retains its original source, matching the definition of done; the payload does not name a specific test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.