Interface SentimentScore.Builder

    • Method Detail

      • positive

        SentimentScore.Builder positive​(Float 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​(Float 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​(Float 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

        SentimentScore.Builder mixed​(Float 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.