ClassifyDocumentResult Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsResult - com.
azure. ai. textanalytics. models. ClassifyDocumentResult
- com.
- com.
public final class ClassifyDocumentResult
extends TextAnalyticsResult
The ClassifyDocumentResult model. It classify the text document one single category.
Constructor Summary
| Constructor | Description |
|---|---|
| ClassifyDocumentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Iterable |
getClassifications()
The document classification result which contains the classification category and the confidence score on it. |
|
Iterable |
getWarnings()
Gets the IterableStream<T> of TextAnalyticsWarning. |
Methods inherited from TextAnalyticsResult
Methods inherited from java.lang.Object
Constructor Details
ClassifyDocumentResult
public ClassifyDocumentResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error)
Creates a ClassifyDocumentResult model.
Parameters:
Method Details
getClassifications
public IterableStream<ClassificationCategory> getClassifications()
The document classification result which contains the classification category and the confidence score on it.
Returns:
getWarnings
public IterableStream<TextAnalyticsWarning> getWarnings()
Gets the IterableStream<T> of TextAnalyticsWarning.
Returns: