DetectKeyPhrases
Source:
src/AWS/Comprehend/DetectKeyPhrases.ts
Runtime binding for comprehend:DetectKeyPhrases — extract the key noun
phrases of the input text with confidence scores and offsets.
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM).
Real-Time Analysis
Section titled “Real-Time Analysis”// initconst detectKeyPhrases = yield* AWS.Comprehend.DetectKeyPhrases();
// runtimeconst result = yield* detectKeyPhrases({ Text: "The quarterly earnings report exceeded analyst expectations.", LanguageCode: "en",});// result.KeyPhrases: [{ Text: "The quarterly earnings report" }, …]