Class: Aws::Lex::Types::SentimentResponse

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-lex/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#sentiment_labelString

The inferred sentiment that Amazon Comprehend has the highest confidence in.

Returns:

  • (String)


1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lex/types.rb', line 1593

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

#sentiment_scoreString

The likelihood that the sentiment was correctly inferred.

Returns:

  • (String)


1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lex/types.rb', line 1593

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