RecognizeCustomEntitiesResultCollection Class

public final class RecognizeCustomEntitiesResultCollection
extends IterableStream<RecognizeEntitiesResult>

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

Constructor Summary

Constructor Description
RecognizeCustomEntitiesResultCollection(Iterable<RecognizeEntitiesResult> documentResults)

Create a RecognizeCustomEntitiesResultCollection model that maintains a list of RecognizeEntitiesResult 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

RecognizeCustomEntitiesResultCollection

public RecognizeCustomEntitiesResultCollection(Iterable<RecognizeEntitiesResult> documentResults)

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

Parameters:

documentResults - A list of RecognizeEntitiesResult.

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