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)


1695
1696
1697
1698
1699
1700
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 1695

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)


1695
1696
1697
1698
1699
1700
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 1695

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