Analyze Sentiment
Description
This Activity analyzes the Sentiment of the provided text using AWS Comprehend Services.
note
This Activity works only inside the AWS Context activity.
Properties
Input
- Document Text – Specify the Text to submit for sentiment analysis.
- Language Code – Specify the language code of the document text.
Misc
- DisplayName – Add a display name to your Activity.
- Private – Logs the variable and argument values at the Verbose level when unchecked.
Optional
- Continue On Error – It Specifies whether the automation should continue even though this Activity fails. This field only supports Boolean values (True, False). The default value is False.
note
Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.
Output
- Sentiment – Returns the Sentiment predicted by the service for input document text. It can be Positive, Negative, Neutral, or Mixed.
- Positive Score – A score between 0 and 100 represents the confidence that the Sentiment is positive.
- Negative Score – A score between 0 and 100 represents the confidence that the Sentiment is negative.
- Neutral Score – A score between 0 and 100 represents the confidence that the Sentiment is neutral.
- Mixed Score – A score between 0 and 100 represents that the Sentiment is mixed confidence.
- Raw Response - JSON string containing the response received as is from AWS.
Example
Download Example