ClassifyDocumentResultCollection Class

public final class ClassifyDocumentResultCollection
extends IterableStream<ClassifyDocumentResult>

A collection model that contains a list of ClassifyDocumentResult along with project name, deployment name and batch's statistics.

Constructor Summary

Constructor Description
ClassifyDocumentResultCollection(Iterable<ClassifyDocumentResult> documentResults)

Create a ClassifyDocumentResultCollection model that maintains a list of ClassifyDocumentResult along with model version and batch's statistics.

Method Summary

Modifier and Type Method and Description
String getDeploymentName()

Gets the name of the deployment being consumed.

String getProjectName()

Gets the name of the project which owns the model being consumed.

TextDocumentBatchStatistics getStatistics()

Get the batch statistics of response.

Methods inherited from IterableStream

Methods inherited from java.lang.Object

Constructor Details

ClassifyDocumentResultCollection

public ClassifyDocumentResultCollection(Iterable<ClassifyDocumentResult> documentResults)

Create a ClassifyDocumentResultCollection model that maintains a list of ClassifyDocumentResult along with model version and batch's statistics.

Parameters:

documentResults - A list of ClassifyDocumentResult.

Method Details

getDeploymentName

public String getDeploymentName()

Gets the name of the deployment being consumed.

Returns:

The name of the deployment being consumed.

getProjectName

public String getProjectName()

Gets the name of the project which owns the model being consumed.

Returns:

The name of the project which owns the model being consumed.

getStatistics

public TextDocumentBatchStatistics getStatistics()

Get the batch statistics of response.

Returns:

The batch statistics of response.

Applies to