/AWS1/CL_LR1SENTIMENTRESPONSE¶
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.
CONSTRUCTOR
¶
IMPORTING¶
Optional arguments:¶
iv_sentimentlabel
TYPE /AWS1/LR1SENTIMENTLABEL
/AWS1/LR1SENTIMENTLABEL
¶
The inferred sentiment that Amazon Comprehend has the highest confidence in.
iv_sentimentscore
TYPE /AWS1/LR1SENTIMENTSCORE
/AWS1/LR1SENTIMENTSCORE
¶
The likelihood that the sentiment was correctly inferred.
Queryable Attributes¶
sentimentLabel¶
The inferred sentiment that Amazon Comprehend has the highest confidence in.
Accessible with the following methods¶
Method | Description |
---|---|
GET_SENTIMENTLABEL() |
Getter for SENTIMENTLABEL, with configurable default |
ASK_SENTIMENTLABEL() |
Getter for SENTIMENTLABEL w/ exceptions if field has no valu |
HAS_SENTIMENTLABEL() |
Determine if SENTIMENTLABEL has a value |
sentimentScore¶
The likelihood that the sentiment was correctly inferred.
Accessible with the following methods¶
Method | Description |
---|---|
GET_SENTIMENTSCORE() |
Getter for SENTIMENTSCORE, with configurable default |
ASK_SENTIMENTSCORE() |
Getter for SENTIMENTSCORE w/ exceptions if field has no valu |
HAS_SENTIMENTSCORE() |
Determine if SENTIMENTSCORE has a value |