ClassifyDocumentResult Class

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 ClassifyDocumentResult model.

Method Summary

Modifier and Type Method and Description
IterableStream<ClassificationCategory> getClassifications()

The document classification result which contains the classification category and the confidence score on it.

IterableStream<TextAnalyticsWarning> 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:

id - Unique, non-empty document identifier.
textDocumentStatistics - The text document statistics.
error - The document error.

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:

Applies to