AnalyzeSentimentResult Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsResult - com.
azure. ai. textanalytics. models. AnalyzeSentimentResult
- com.
- com.
public final class AnalyzeSentimentResult
extends TextAnalyticsResult
The AnalyzeSentimentResult model.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeSentimentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DocumentSentiment documentSentiment) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Document |
getDocumentSentiment()
Gets the document sentiment. |
Methods inherited from TextAnalyticsResult
Methods inherited from java.lang.Object
Constructor Details
AnalyzeSentimentResult
public AnalyzeSentimentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DocumentSentiment documentSentiment)
Creates a AnalyzeSentimentResult model that describes analyzed sentiment result.
Parameters:
Method Details
getDocumentSentiment
public DocumentSentiment getDocumentSentiment()
Gets the document sentiment.
Returns: