Interface SentimentScore.Builder

  • Method Details

    • positive

      SentimentScore.Builder positive(Double positive)

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

      Parameters:
      positive - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • negative

      SentimentScore.Builder negative(Double negative)

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

      Parameters:
      negative - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • neutral

      SentimentScore.Builder neutral(Double neutral)

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

      Parameters:
      neutral - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mixed

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

      Parameters:
      mixed - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.