サービス · Machine Learning · AIF-C01 の発展
Amazon Textract
Choose the right Textract API, run it sync or async, and add human review for low confidence.
このレッスンはまだ翻訳されていないため、英語で表示しています。
AI Practitionerで学んだこと
- Textract reads scanned documents and returns text, form fields as key and value pairs, and tables.
- It reads printed text and handwriting.
- Low-confidence results can go to human review with Amazon A2I.
DetectDocumentText
- Returns
- Lines and words
- Mode
- Sync or async
AnalyzeDocument
- Returns
- Forms, tables, queries, signatures, layout
- Mode
- Sync or async
AnalyzeExpense
- Returns
- Vendor, total, line items
- Mode
- Sync or async
AnalyzeID
- Returns
- Fields from ID documents
- Mode
- Sync
| API | Returns | Mode |
|---|---|---|
| DetectDocumentText | Lines and words | Sync or async |
| AnalyzeDocument | Forms, tables, queries, signatures, layout | Sync or async |
| AnalyzeExpense | Vendor, total, line items | Sync or async |
| AnalyzeID | Fields from ID documents | Sync |
1 / 2
DetectDocumentText
- Returns
- Lines and words
- Mode
- Sync or async
AnalyzeDocument
- Returns
- Forms, tables, queries, signatures, layout
- Mode
- Sync or async
AnalyzeExpense
- Returns
- Vendor, total, line items
- Mode
- Sync or async
| API | Returns | Mode |
|---|---|---|
| DetectDocumentText | Lines and words | Sync or async |
| AnalyzeDocument | Forms, tables, queries, signatures, layout | Sync or async |
| AnalyzeExpense | Vendor, total, line items | Sync or async |
2 / 2
AnalyzeID
- Returns
- Fields from ID documents
- Mode
- Sync
| API | Returns | Mode |
|---|---|---|
| AnalyzeID | Fields from ID documents | Sync |
- 1Start a job on a file in S3.
- 2Textract reads the pages and finishes.
- 3It publishes a completion message to an SNS topic.
- 4Your code calls the matching Get operation for the results.
流れ
- 1Start a job on a file in S3.
- 2Textract reads the pages and finishes.
- 3It publishes a completion message to an SNS topic.
- 4Your code calls the matching Get operation for the results.
The asynchronous pattern for multi-page files.
概要
Pick the API by what you need back. DetectDocumentText returns lines and words only. AnalyzeDocument adds the features you request: FORMS (key and value pairs), TABLES (cells), QUERIES (ask in plain language, such as “What is the invoice total?”), SIGNATURES (where a signature sits) and LAYOUT (titles, headers and paragraphs). AnalyzeExpense is made for invoices and receipts: it returns summary fields such as vendor and total, plus line items. AnalyzeID reads identity documents such as passports and driver’s licenses.
概要
Synchronous calls take a single-page document and answer at once. For multi-page documents, start an asynchronous job, for example StartDocumentAnalysis, on a file in Amazon S3. Textract publishes a completion message to an Amazon SNS topic, then your code fetches the results with the matching Get call.
When a result has low confidence, Amazon Augmented AI (Amazon A2I) can route it to people for review. Status: A2I was moved to maintenance in the June 30, 2026 availability update and is closed to new customers from July 30, 2026. Existing users can keep using it.
覚えること
- DetectDocumentText: lines and words. AnalyzeDocument: forms, tables, queries, signatures and layout.
- AnalyzeExpense: invoices and receipts. AnalyzeID: passports and driver’s licenses.
- Sync for single pages. Async for multi-page files: S3 input, SNS notification, then a Get call.
- Every result has a confidence score. Low scores can go to human review with A2I.
覚えること
- A2I: closed to new customers from July 30, 2026 (announced June 30, 2026).
- Amazon Textract Insights, a newer generative AI option, handles mixed document packets and RAG output. It is asynchronous and only in US East (N. Virginia) and US West (Oregon).
試験では
- “Pull the total and vendor name from thousands of receipts” points to AnalyzeExpense.
- “Ask for the policy number, in plain language, on forms with different layouts” points to Textract Queries.
- “A 200-page PDF in S3, notify when done” points to an asynchronous job with Amazon SNS.
このタスクの内容 · 2.1
- Choosing a foundation model in Bedrock
- Custom, managed, pre-trained or foundation model
- Selecting ML models and algorithms
JumpStart and AutoML
- Fine-tuning strategies for foundation models
- RAG architecture patterns
- Training time, cost and performance trade-offs
- FM performance, latency and cost trade-offs
Textract
Rekognition
Comprehend
Transcribe
Translate, Polly, Lex
Personalize and health AI