[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
gefragt vor 2 Monaten130 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen