Class ClassifyDocumentResult
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.ClassifyDocumentResult
The
ClassifyDocumentResult model. It classify the text document one single category.-
Constructor Summary
ConstructorsConstructorDescriptionClassifyDocumentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aClassifyDocumentResultmodel. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.IterableStream<ClassificationCategory>The document classification result which contains the classification category and the confidence score on it.com.azure.core.util.IterableStream<TextAnalyticsWarning>Gets theIterableStreamofText Analytics warnings.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
Constructor Details
-
ClassifyDocumentResult
public ClassifyDocumentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aClassifyDocumentResultmodel.- Parameters:
id- Unique, non-empty document identifier.textDocumentStatistics- The text document statistics.error- The document error.
-
-
Method Details
-
getClassifications
The document classification result which contains the classification category and the confidence score on it.- Returns:
IterableStreamofClassificationCategory.
-
getWarnings
Gets theIterableStreamofText Analytics warnings.- Returns:
IterableStreamofTextAnalyticsWarning.
-