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)


1423
1424
1425
1426
1427
1428
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 1423

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)


1423
1424
1425
1426
1427
1428
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 1423

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