aws-samples / aws-samples/amazon-textract-textractor
Error in get_layout_text_from_json in textractprettyprinter
Open
- Dominant language
- Jupyter Notebook
- Stars
- 493
- Forks
- 163
- PR merge metrics
- No merged PRs in 30d
Description
Encountered this error in several documents because SELECTION_ELEMENT blocks (selection elements inside a table) do not contain the key 'Text'.
Noticed that there is an issue with the same problem #271 but it is closed, so I created a new one.
Contributor guide
Research direction
Start with get_layout_text_from_json in textractprettyprinter and reproduce the failure using a document containing SELECTION_ELEMENT blocks inside a table. Confirm that processing those blocks no longer requires the missing Text key, and verify that layout text generation completes without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- backend, data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100