Unstructured-IO / Unstructured-IO/unstructured-inference
partition_groups_from_regions misses sources
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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