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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lex/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)


1595
1596
1597
1598
1599
1600
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 1595

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)


1595
1596
1597
1598
1599
1600
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 1595

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