You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Comprehend::Types::DetectSentimentResponse

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#sentimentString

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

Possible values:

  • POSITIVE
  • NEGATIVE
  • NEUTRAL
  • MIXED

Returns:

  • (String)

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

#sentiment_scoreTypes::SentimentScore

An object that lists the sentiments, and their corresponding confidence levels.

Returns:

  • (Types::SentimentScore)

    An object that lists the sentiments, and their corresponding confidence levels.