Class TargetedSentimentResults

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

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

    • TargetedSentimentResults

      public TargetedSentimentResults()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      Targeted text.

      Returns:
      the text
    • getScore

      public Double getScore()
      Gets the score.

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

      Returns:
      the score