Class: Aws::LexRuntimeV2::Types::SentimentResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexRuntimeV2::Types::SentimentResponse
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-lexruntimev2/types.rb
Overview
Provides information about the sentiment expressed in a user’s response in a conversation. Sentiments are determined using Amazon Comprehend. Sentiments are only returned if they are enabled for the bot.
For more information, see [ Determine Sentiment ][1] in the *Amazon Comprehend developer guide*.
[1]: docs.aws.amazon.com/comprehend/latest/dg/how-sentiment.html
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#sentiment ⇒ String
The overall sentiment expressed in the user’s response.
-
#sentiment_score ⇒ Types::SentimentScore
The individual sentiment responses for the utterance.
Instance Attribute Details
#sentiment ⇒ String
The overall sentiment expressed in the user’s response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
1445 1446 1447 1448 1449 1450 |
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 1445 class SentimentResponse < Struct.new( :sentiment, :sentiment_score) SENSITIVE = [] include Aws::Structure end |
#sentiment_score ⇒ Types::SentimentScore
The individual sentiment responses for the utterance.
1445 1446 1447 1448 1449 1450 |
# File 'lib/aws-sdk-lexruntimev2/types.rb', line 1445 class SentimentResponse < Struct.new( :sentiment, :sentiment_score) SENSITIVE = [] include Aws::Structure end |