The Sentiment Analysis node allows you to inspect the text in an input string field to gauge the sentiment. For example, you can use this node to infer the sentiment of comments or call center notes. The node uses the Amazon Comprehend API to determine the sentiment of the text in incoming string fields. The possible sentiment values are:
- Positive
- Negative
- Neutral
- Mixed
The node outputs all input fields, and the following new fields:
- Sentiment - The inferred sentiment of the string.
- SentimentScoreMixed - The confidence level that the sentiment of the string is mixed.
- SentimentScorePositive - The confidence level that the sentiment of the string is positive.
- SentimentScoreNegative - The confidence level that the sentiment of the string is negative.
- SentimentScoreNeutral - The confidence level that the sentiment of the string is neutral.
Example
Input text: Today I won a prize, I am so happy
Sentiment | SentimentScoreMixed | SentimentScorePositive | SentimentScoreNegative | SentimentScoreNeutral |
---|---|---|---|---|
POSITIVE | 0.00335512369668968547 | 0.9869123407897323 | 0.0012341230975521897 | 0.008563112124698635 |
For more information, please see the Amazon Comprehend documentation, for example https://docs.aws.amazon.com/comprehend/latest/dg/how-sentiment.html
Properties
Display Name
Specify the name of the node that is displayed on the Analysis Designer canvas.
The default value is Sentiment Analysis.
Field for Sentiment Analysis
Select an input field to analyze.
Language
Select the language of the text to analyze.
The default value is English.