Textract Document Analysis - No Alias/Queries in output

0

I have two lambda functions currently, one to specify the queries and start the document analysis. The second function is triggered by a SNS topic and retrieves the document analysis. The problem is that printing the result below does not include the query nor the alias which I need to match up the data. I need to use text analysis operations of StartDocumentAnalysis because the pdfs are multiple pages.

if block['BlockType'] == 'QUERY_RESULT':
            print(json.dumps(block, indent=4))
asked 12 days ago89 views
1 Answer
0

Thanks for using Textract. We'll need more information to know what was the exact issue. However, QUERY_RESULT won't be in the response when there is no answer to the QUERY.

AWS
Alan_L
answered 9 days 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.

Guidelines for Answering Questions