amazon-textract-textractor icon indicating copy to clipboard operation
amazon-textract-textractor copied to clipboard

how to use get_result?

Open bvbg1 opened this issue 1 year ago • 2 comments

I tried this line: document = extractor.get_result(job_id=job_id, TextractAPI.ANALYZE)

and I get: [ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'lambda_function': positional argument follows keyword argument

Also tried: document = extractor.get_result(job_id=job_id, api=TextractAPI.ANALYZE) but didn't work either.

What is the right way to invoke it for tables?

bvbg1 avatar May 24 '23 23:05 bvbg1

I think you need to use Textract_API.DETECT not TextractAPI.ANALYZE

from textractcaller import call_textract, Textract_Features, Textract_API

grantrosse avatar May 27 '23 03:05 grantrosse

Can you share the error you get when you use: document = extractor.get_result(job_id=job_id, api=TextractAPI.ANALYZE) ?

ThomasDelteil avatar Jul 05 '23 18:07 ThomasDelteil