Skip to main content

Key phrases

Find the main noun phrases of a text, such as "the monthly invoice" or "three new laptops" (Amazon Comprehend).

Command in the AWS AI services toolkit · id ooa.aws_ai/comprehend_key_phrases · 4 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoaws_aiName of the session opened by Connect.
TextStringYesThe text to read, at most 100,000 bytes.
LanguageStringNoenLanguage of the text, e.g. en, es, fr, de, it, pt, ja, ko, zh, ar or hi.
Minimum scoreNumberNo0Leave out phrases scored below this (0 to 1).

Outputs​

OutputTypeWhat it is
phrasesListThe phrases, most likely first.
key_phrasesTableColumns: text, score, begin_offset, end_offset.
countNumberHow many phrases were found.