Skip to content

Single-row Tables Not Being Detected by Amazon Textract

0

I am using Amazon Textract to extract tabular data from PDFs. I have observed that tables with only a single row are sometimes not being detected or extracted by Textract. For example, in the attached image, there is a single-row table under "Q3 Summary" displaying "Prior Lease ABR (% of Total Portfolio) - 2.9%." However, Textract does not seem to recognize this as a valid table during extraction. Has anyone faced this issue? Are there any configurations or workarounds to ensure even single-row tables are reliably detected by Textract? Configuration Details: Extraction type: Table

Any help or guidance would be appreciated.Enter image description here

asked a year ago234 views

1 Answer
0

The issue you're experiencing with Amazon Textract not detecting single-row tables is a known limitation of the service. Textract's table detection algorithm is designed to identify more complex table structures and may sometimes overlook simpler, single-row tables.

To address this issue, you have several options:

  1. Use text detection instead of table extraction: For simple, single-row tables, you might get better results by using Textract's text detection feature and then implementing your own logic to structure the extracted text as a table.

  2. Post-processing: Implement custom post-processing logic to identify potential single-row tables based on the layout and content of the extracted text. This could involve analyzing the geometric relationships between text blocks and their content to identify table-like structures.

  3. Custom queries: If your documents follow a consistent format, you might be able to use Textract's custom queries feature to more accurately extract the single-row table data. This approach requires defining specific queries tailored to your document layout.

  4. Image preprocessing: Ensure that the input images are of high quality with good contrast. You might also consider adding additional rows or borders to single-row tables in the preprocessing stage to make them more detectable by Textract.

  5. Alternative layout analysis: Consider using a combination of Textract's features, such as text detection and layout analysis, to build a more comprehensive understanding of the document structure. This may help in identifying single-row tables that the table extraction feature alone might miss.

Remember that while these approaches can help mitigate the issue, they may require additional development effort and testing. It's important to thoroughly test your solution with a diverse set of sample documents to ensure it handles different scenarios effectively.

If this limitation significantly impacts your use case, consider providing feedback to AWS about this specific issue. While Textract is not directly trainable by users, AWS does use customer feedback to improve the service over time.

Sources
Enumerated list not recognised by textract | AWS re:Post
If AWS Textract itself makes a mistake by extracting the same table into different columns, what should be done? I want to merge all the tables to a single table in CSV. | AWS re:Post

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.