public static interface ClassifyDocumentResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<ClassifyDocumentResponse.Builder,ClassifyDocumentResponse>
| Modifier and Type | Method and Description |
|---|---|
ClassifyDocumentResponse.Builder |
classes(Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResponse.Builder |
classes(Consumer<DocumentClass.Builder>... classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResponse.Builder |
classes(DocumentClass... classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResponse.Builder |
labels(Collection<DocumentLabel> labels)
The labels used the document being analyzed.
|
ClassifyDocumentResponse.Builder |
labels(Consumer<DocumentLabel.Builder>... labels)
The labels used the document being analyzed.
|
ClassifyDocumentResponse.Builder |
labels(DocumentLabel... labels)
The labels used the document being analyzed.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildClassifyDocumentResponse.Builder classes(Collection<DocumentClass> classes)
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
classes - The classes used by the document being analyzed. These are used for multi-class trained models.
Individual classes are mutually exclusive and each document is expected to have only a single class
assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.ClassifyDocumentResponse.Builder classes(DocumentClass... classes)
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
classes - The classes used by the document being analyzed. These are used for multi-class trained models.
Individual classes are mutually exclusive and each document is expected to have only a single class
assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.ClassifyDocumentResponse.Builder classes(Consumer<DocumentClass.Builder>... classes)
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #classes(List) .classes - a consumer that will call methods on List.Builder #classes(List) ClassifyDocumentResponse.Builder labels(Collection<DocumentLabel> labels)
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
labels - The labels used the document being analyzed. These are used for multi-label trained models. Individual
labels represent different categories that are related in some manner and are not mutually exclusive.
For example, a movie can be just an action movie, or it can be an action movie, a science fiction
movie, and a comedy, all at the same time.ClassifyDocumentResponse.Builder labels(DocumentLabel... labels)
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
labels - The labels used the document being analyzed. These are used for multi-label trained models. Individual
labels represent different categories that are related in some manner and are not mutually exclusive.
For example, a movie can be just an action movie, or it can be an action movie, a science fiction
movie, and a comedy, all at the same time.ClassifyDocumentResponse.Builder labels(Consumer<DocumentLabel.Builder>... labels)
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #labels(List) .labels - a consumer that will call methods on List.Builder #labels(List) Copyright © 2021. All rights reserved.