[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
posta 2 mesi fa130 visualizzazioni
1 Risposta
1
Risposta accettata

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
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande