Unstructured-IO / Unstructured-IO/unstructured-inference
bug/field text is None when running DocumentLayout.from_file
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 209
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
I am using version 0.7.21.
If I run the following code, the text from all the entities is None.
from unstructured_inference.inference.layout import DocumentLayout
file = "sample-docs/layout-parser-paper-fast.pdf"
doc = DocumentLayout.from_file(file)
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 at DocumentLayout.from_file in unstructured_inference.inference.layout and reproduce the report with sample-docs/layout-parser-paper-fast.pdf. Trace how entity text is populated during layout inference, then verify that the entities returned by the example contain text rather than None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100