Interface SentimentResponse.Builder

    • Method Detail

      • sentimentLabel

        SentimentResponse.Builder sentimentLabel​(String sentimentLabel)

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

        Parameters:
        sentimentLabel - The inferred sentiment that Amazon Comprehend has the highest confidence in.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sentimentScore

        SentimentResponse.Builder sentimentScore​(String sentimentScore)

        The likelihood that the sentiment was correctly inferred.

        Parameters:
        sentimentScore - The likelihood that the sentiment was correctly inferred.
        Returns:
        Returns a reference to this object so that method calls can be chained together.