Unstructured-IO / Unstructured-IO/unstructured-inference

bug/field text is None when running DocumentLayout.from_file

Open
#316 2 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.