Class: Aws::LexRuntimeV2::Types::SentimentResponse

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexruntimev2/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 in the Amazon Comprehend developer guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#sentimentString

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.

Returns:

  • (String)


1445
1446
1447
1448
1449
1450
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1445

class SentimentResponse < Struct.new(
  :sentiment,
  :sentiment_score)
  SENSITIVE = []
  include Aws::Structure
end

#sentiment_scoreTypes::SentimentScore

The individual sentiment responses for the utterance.



1445
1446
1447
1448
1449
1450
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1445

class SentimentResponse < Struct.new(
  :sentiment,
  :sentiment_score)
  SENSITIVE = []
  include Aws::Structure
end