Package com.azure.ai.textanalytics.util
Class ClassifyDocumentResultCollection
java.lang.Object
com.azure.core.util.IterableStream<ClassifyDocumentResult>
com.azure.ai.textanalytics.util.ClassifyDocumentResultCollection
- All Implemented Interfaces:
Iterable<ClassifyDocumentResult>
public final class ClassifyDocumentResultCollection
extends com.azure.core.util.IterableStream<ClassifyDocumentResult>
A collection model that contains a list of
ClassifyDocumentResult along with project name,
deployment name and batch's statistics.-
Constructor Summary
ConstructorsConstructorDescriptionClassifyDocumentResultCollection(Iterable<ClassifyDocumentResult> documentResults) Create aClassifyDocumentResultCollectionmodel that maintains a list ofClassifyDocumentResultalong with model version and batch's statistics. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the deployment being consumed.Gets the name of the project which owns the model being consumed.Get the batch statistics of response.Methods inherited from class com.azure.core.util.IterableStream
iterator, of, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClassifyDocumentResultCollection
Create aClassifyDocumentResultCollectionmodel that maintains a list ofClassifyDocumentResultalong with model version and batch's statistics.- Parameters:
documentResults- A list ofClassifyDocumentResult.
-
-
Method Details
-
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.
-
getDeploymentName
Gets the name of the deployment being consumed.- Returns:
- The name of the deployment being consumed.
-
getStatistics
Get the batch statistics of response.- Returns:
- The batch statistics of response.
-