AWS Comprehend NLP package

The AWS Comprehend NLP package contains actions that enable you to connect to and consume the Amazon Comprehend API to identify the language, sentiment, key phrases, and entities.

Important: This is a beta package and is currently not available with the Automation 360 Enterprise and Cloud editions.

Before you start

You require the following information for an existing AWS account to use these actions:

Actions in the AWS Comprehend NLP package

Action Description
Detect language Identifies the language of the provided content and returns it in ISO 639-1 language code. The output is stored in a string variable. This action supports over 100 languages. For the full list, see Detect the Dominant Language.
Get key phrases Identifies the main points and returns a list of key phrases. For example, if the input text is about a basketball game, this action returns the names of teams, the name of the venue, and the final score.
Get named entities Identifies the entities in the provided content such as people, places, organizations, date/time, quantities, branded products, and book titles.

The output is stored in a dictionary variable, where each name is a key, and the corresponding entity is the value.

Get sentiment Analyzes the provided content and returns the overall sentiment and scores for all possible sentiments. An example output of the dictionary values:

POSITIVE {Positive: 0.66238534,Negative: 0.0013064129,Neutral: 0.33621928,Mixed: 8.892125E-5}

The output is stored in a dictionary variable containing two keys and their corresponding values: sentiment and score.