Class SentimentResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.SentimentResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SentimentResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The sentiment of the content.
-
Constructor Summary
Constructors Constructor Description SentimentResult()
-
Method Summary
Modifier and Type Method Description DocumentSentimentResults
getDocument()
Gets the document.List<TargetedSentimentResults>
getTargets()
Gets the targets.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
SentimentResult
public SentimentResult()
-
-
Method Details
-
getDocument
Gets the document.The document level sentiment.
- Returns:
- the document
-
getTargets
Gets the targets.The targeted sentiment to analyze.
- Returns:
- the targets
-