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 Summary
Constructors Constructor Description TargetedSentimentResults()
-
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
TargetedSentimentResults
public TargetedSentimentResults()
-
-
Method Details
-
getText
Gets the text.Targeted text.
- Returns:
- the text
-
getScore
Gets the score.Sentiment score from -1 (negative) to 1 (positive).
- Returns:
- the score
-