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 Summary
Constructors Constructor Description DocumentSentimentResults()
-
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
DocumentSentimentResults
public DocumentSentimentResults()
-
-
Method Details
-
getLabel
Gets the label.Indicates whether the sentiment is positive, neutral, or negative.
- Returns:
- the label
-
getScore
Gets the score.Sentiment score from -1 (negative) to 1 (positive).
- Returns:
- the score
-