library · inferred from evidence
textractor
A Python library for working with AWS Textract, particularly for expense analysis.
- textractor raises `KeyError: 'Geometry'` when an expense field has an empty value
I call `textract.start_expense_analysis` on a multi-page invoice PDF stored in S3. When I access `document.expense_documents`, I get `KeyError: 'Geometry'`. Debugging the textractor package, I found the Geometry part is missing for an `Expe
- textractor raises `KeyError: 'Relationships'` on documents with blank pages
My textractor pipeline crashes with `KeyError: 'Relationships'` in the response parser on a specific document. The stack trace points at `response_parser.parse(paginated_response)`. I cannot share the document for privacy reasons. What caus