BatchDetectSyntax
Source:
src/AWS/Comprehend/BatchDetectSyntax.ts
Runtime binding for comprehend:BatchDetectSyntax — tokenize and label parts of speech for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
Batch Real-Time Analysis
Section titled “Batch Real-Time Analysis”// initconst batchDetectSyntax = yield* AWS.Comprehend.BatchDetectSyntax();
// runtimeconst result = yield* batchDetectSyntax({ TextList: ["I love this product!", "The delivery was late."], LanguageCode: "en",});// result.ResultList[0].SyntaxTokens