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

Class: Aws::Comprehend::Types::SentimentScore

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb

Overview

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

Instance Attribute Summary collapse

Instance Attribute Details

#mixedFloat

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.

Returns:

  • (Float)


1518
1519
1520
1521
1522
1523
1524
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1518

class SentimentScore < Struct.new(
  :positive,
  :negative,
  :neutral,
  :mixed)
  include Aws::Structure
end

#negativeFloat

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.

Returns:

  • (Float)


1518
1519
1520
1521
1522
1523
1524
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1518

class SentimentScore < Struct.new(
  :positive,
  :negative,
  :neutral,
  :mixed)
  include Aws::Structure
end

#neutralFloat

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.

Returns:

  • (Float)


1518
1519
1520
1521
1522
1523
1524
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1518

class SentimentScore < Struct.new(
  :positive,
  :negative,
  :neutral,
  :mixed)
  include Aws::Structure
end

#positiveFloat

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.

Returns:

  • (Float)


1518
1519
1520
1521
1522
1523
1524
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 1518

class SentimentScore < Struct.new(
  :positive,
  :negative,
  :neutral,
  :mixed)
  include Aws::Structure
end