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
ConstructorDescriptionClassifyDocumentResult
(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aClassifyDocumentResult
model. -
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.Get the detectedLanguage property: If 'language' is set to 'auto' for the document in the request this field will contain an object of the language detected for this document.com.azure.core.util.IterableStream<TextAnalyticsWarning>
Gets theIterableStream
ofText 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 aClassifyDocumentResult
model.- 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:
IterableStream
ofClassificationCategory
.
-
getDetectedLanguage
Get the detectedLanguage property: If 'language' is set to 'auto' for the document in the request this field will contain an object of the language detected for this document.- Returns:
- the detectedLanguage value.
-
getWarnings
Gets theIterableStream
ofText Analytics warnings
.- Returns:
IterableStream
ofTextAnalyticsWarning
.
-