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))
已提问 1 个月前114 查看次数
1 回答
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
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则