[TEXTRACT] AnalyzeDocument demo web VS AnalyzeDocument java awssdk

0

Hi AWS team,

I uploaded a PDF file using the online demo (TABLES) and I got more accurate results than using the AWS async API java.

<dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>textract</artifactId> <version>2.25.11</version> </dependency>

Which version should I use in order to get same results?

Thanks.

Daniel
asked 2 months ago121 views
1 Answer
1
Accepted Answer

I found the reason why I wasn't getting same result as the online demo, basically I wasn't handling the NextToken property, so my response wasn't fully concatenated.

Since GetDocumentAnalysisRequest has a maximum of 1000 object results, it's necessary to concatenate blocks after a SUCCEEDED call.

Hope this helps someone else.

Daniel
answered 2 months ago
profile picture
EXPERT
reviewed a month 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