Class SingleCategoryClassifyResult
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.SingleCategoryClassifyResult
The
SingleCategoryClassifyResult
model. It classify the text document one single category.-
Constructor Summary
ConstructorDescriptionSingleCategoryClassifyResult
(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aSingleCategoryClassifyResult
model. -
Method Summary
Modifier and TypeMethodDescriptionThe document classification result which contains the classified category and the confidence score on it.Gets theIterableStream
ofText Analytics warnings
.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
Constructor Details
-
SingleCategoryClassifyResult
public SingleCategoryClassifyResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aSingleCategoryClassifyResult
model.- Parameters:
id
- Unique, non-empty document identifier.textDocumentStatistics
- The text document statistics.error
- The document error.
-
-
Method Details
-
getClassification
The document classification result which contains the classified category and the confidence score on it.- Returns:
- The
ClassificationCategory
.
-
getWarnings
Gets theIterableStream
ofText Analytics warnings
.- Returns:
IterableStream
ofTextAnalyticsWarning
.
-