Class SingleCategoryClassifyResult
- java.lang.Object
-
- com.azure.ai.textanalytics.models.TextAnalyticsResult
-
- com.azure.ai.textanalytics.models.SingleCategoryClassifyResult
-
public final class SingleCategoryClassifyResult extends TextAnalyticsResult
TheSingleCategoryClassifyResult
model. It classify the text document one single category.
-
-
Constructor Summary
Constructors Constructor Description SingleCategoryClassifyResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error)
Creates aSingleCategoryClassifyResult
model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassificationCategory
getClassification()
The document classification result which contains the classified category and the confidence score on it.com.azure.core.util.IterableStream<TextAnalyticsWarning>
getWarnings()
Gets theIterableStream
ofText Analytics warnings
.-
Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
-
-
-
Constructor Detail
-
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 Detail
-
getClassification
public ClassificationCategory getClassification()
The document classification result which contains the classified category and the confidence score on it.- Returns:
- The
ClassificationCategory
.
-
getWarnings
public com.azure.core.util.IterableStream<TextAnalyticsWarning> getWarnings()
Gets theIterableStream
ofText Analytics warnings
.- Returns:
IterableStream
ofTextAnalyticsWarning
.
-
-