Class DocumentSentimentResults

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.DocumentSentimentResults
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class DocumentSentimentResults
extends com.ibm.cloud.sdk.core.service.model.GenericModel
DocumentSentimentResults.
  • Constructor Details

    • DocumentSentimentResults

      public DocumentSentimentResults()
  • Method Details

    • getLabel

      public String getLabel()
      Gets the label.

      Indicates whether the sentiment is positive, neutral, or negative.

      Returns:
      the label
    • getScore

      public Double getScore()
      Gets the score.

      Sentiment score from -1 (negative) to 1 (positive).

      Returns:
      the score