Class AnalyzeSentimentResult
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.AnalyzeSentimentResult
The
AnalyzeSentimentResult model.-
Constructor Summary
ConstructorsConstructorDescriptionAnalyzeSentimentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DocumentSentiment documentSentiment) Creates aAnalyzeSentimentResultmodel that describes analyzed sentiment result. -
Method Summary
Modifier and TypeMethodDescriptionGets the document sentiment.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
Constructor Details
-
AnalyzeSentimentResult
public AnalyzeSentimentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DocumentSentiment documentSentiment) Creates aAnalyzeSentimentResultmodel that describes analyzed sentiment result.- Parameters:
id- Unique, non-empty document identifier.textDocumentStatistics- The text document statistics.error- The document error.documentSentiment- The document sentiment.
-
-
Method Details
-
getDocumentSentiment
Gets the document sentiment.- Returns:
- The document sentiment.
- Throws:
TextAnalyticsException- if result hasisErrorequals to true and when a non-error property was accessed.
-