public static interface DetectEntitiesResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectEntitiesResponse.Builder,DetectEntitiesResponse>
| Modifier and Type | Method and Description |
|---|---|
DetectEntitiesResponse.Builder |
blocks(Block... blocks)
Information about each block of text in the input document.
|
DetectEntitiesResponse.Builder |
blocks(Collection<Block> blocks)
Information about each block of text in the input document.
|
DetectEntitiesResponse.Builder |
blocks(Consumer<Block.Builder>... blocks)
Information about each block of text in the input document.
|
default DetectEntitiesResponse.Builder |
documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Information about the document, discovered during text extraction.
|
DetectEntitiesResponse.Builder |
documentMetadata(DocumentMetadata documentMetadata)
Information about the document, discovered during text extraction.
|
DetectEntitiesResponse.Builder |
documentType(Collection<DocumentTypeListItem> documentType)
The document type for each page in the input document.
|
DetectEntitiesResponse.Builder |
documentType(Consumer<DocumentTypeListItem.Builder>... documentType)
The document type for each page in the input document.
|
DetectEntitiesResponse.Builder |
documentType(DocumentTypeListItem... documentType)
The document type for each page in the input document.
|
DetectEntitiesResponse.Builder |
entities(Collection<Entity> entities)
A collection of entities identified in the input text.
|
DetectEntitiesResponse.Builder |
entities(Consumer<Entity.Builder>... entities)
A collection of entities identified in the input text.
|
DetectEntitiesResponse.Builder |
entities(Entity... entities)
A collection of entities identified in the input text.
|
DetectEntitiesResponse.Builder |
errors(Collection<ErrorsListItem> errors)
Page-level errors that the system detected while processing the input document.
|
DetectEntitiesResponse.Builder |
errors(Consumer<ErrorsListItem.Builder>... errors)
Page-level errors that the system detected while processing the input document.
|
DetectEntitiesResponse.Builder |
errors(ErrorsListItem... errors)
Page-level errors that the system detected while processing the input document.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildDetectEntitiesResponse.Builder entities(Collection<Entity> entities)
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
entities - A collection of entities identified in the input text. For each entity, the response provides the
entity text, entity type, where the entity text begins and ends, and the level of confidence that
Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
DetectEntitiesResponse.Builder entities(Entity... entities)
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
entities - A collection of entities identified in the input text. For each entity, the response provides the
entity text, entity type, where the entity text begins and ends, and the level of confidence that
Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
DetectEntitiesResponse.Builder entities(Consumer<Entity.Builder>... entities)
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
This is a convenience method that creates an instance of theEntity.Builder avoiding the need to create one
manually via Entity.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #entities(List.
entities - a consumer that will call methods on
Entity.Builder#entities(java.util.Collection) DetectEntitiesResponse.Builder documentMetadata(DocumentMetadata documentMetadata)
Information about the document, discovered during text extraction. This field is present in the response only
if your request used the Byte parameter.
documentMetadata - Information about the document, discovered during text extraction. This field is present in the
response only if your request used the Byte parameter.default DetectEntitiesResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Information about the document, discovered during text extraction. This field is present in the response only
if your request used the Byte parameter.
DocumentMetadata.Builder avoiding the
need to create one manually via DocumentMetadata.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to documentMetadata(DocumentMetadata).
documentMetadata - a consumer that will call methods on DocumentMetadata.BuilderdocumentMetadata(DocumentMetadata)DetectEntitiesResponse.Builder documentType(Collection<DocumentTypeListItem> documentType)
The document type for each page in the input document. This field is present in the response only if your
request used the Byte parameter.
documentType - The document type for each page in the input document. This field is present in the response only if
your request used the Byte parameter.DetectEntitiesResponse.Builder documentType(DocumentTypeListItem... documentType)
The document type for each page in the input document. This field is present in the response only if your
request used the Byte parameter.
documentType - The document type for each page in the input document. This field is present in the response only if
your request used the Byte parameter.DetectEntitiesResponse.Builder documentType(Consumer<DocumentTypeListItem.Builder>... documentType)
The document type for each page in the input document. This field is present in the response only if your
request used the Byte parameter.
DocumentTypeListItem.Builder avoiding the need to
create one manually via
DocumentTypeListItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #documentType(List.
documentType - a consumer that will call methods on
DocumentTypeListItem.Builder#documentType(java.util.Collection) DetectEntitiesResponse.Builder blocks(Collection<Block> blocks)
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry field.
The Block field is not present in the response for plain-text inputs.
blocks - Information about each block of text in the input document. Blocks are nested. A page block contains a
block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry
field.
The Block field is not present in the response for plain-text inputs.
DetectEntitiesResponse.Builder blocks(Block... blocks)
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry field.
The Block field is not present in the response for plain-text inputs.
blocks - Information about each block of text in the input document. Blocks are nested. A page block contains a
block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry
field.
The Block field is not present in the response for plain-text inputs.
DetectEntitiesResponse.Builder blocks(Consumer<Block.Builder>... blocks)
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry field.
The Block field is not present in the response for plain-text inputs.
Block.Builder avoiding the need to create one
manually via Block.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #blocks(List.
blocks - a consumer that will call methods on
Block.Builder#blocks(java.util.Collection) DetectEntitiesResponse.Builder errors(Collection<ErrorsListItem> errors)
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
errors - Page-level errors that the system detected while processing the input document. The field is empty if
the system encountered no errors.DetectEntitiesResponse.Builder errors(ErrorsListItem... errors)
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
errors - Page-level errors that the system detected while processing the input document. The field is empty if
the system encountered no errors.DetectEntitiesResponse.Builder errors(Consumer<ErrorsListItem.Builder>... errors)
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
This is a convenience method that creates an instance of theErrorsListItem.Builder avoiding the need to create
one manually via ErrorsListItem.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #errors(List.
errors - a consumer that will call methods on
ErrorsListItem.Builder#errors(java.util.Collection) Copyright © 2023. All rights reserved.