amazon-textract-textractor
amazon-textract-textractor copied to clipboard
how to use get_result?
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?
I think you need to use Textract_API.DETECT
not TextractAPI.ANALYZE
from textractcaller import call_textract, Textract_Features, Textract_API
Can you share the error you get when you use: document = extractor.get_result(job_id=job_id, api=TextractAPI.ANALYZE)
?