aws-samples / aws-samples/amazon-textract-textractor

how to use get_result?

Open
#215 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
493
Forks
163
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Research direction

Start by checking the get_result entry point and the TextractAPI.ANALYZE argument usage shown in the issue. Confirm the supported invocation for table extraction and document an example that completes without the positional-argument syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
api
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.