[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
질문됨 2달 전130회 조회
1개 답변
1
수락된 답변

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
답변함 2달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠