public static interface Entity.Builder extends SdkPojo, CopyableBuilder<Entity.Builder,Entity>
| Modifier and Type | Method and Description |
|---|---|
Entity.Builder |
beginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
|
Entity.Builder |
blockReferences(BlockReference... blockReferences)
A reference to each block for this entity.
|
Entity.Builder |
blockReferences(Collection<BlockReference> blockReferences)
A reference to each block for this entity.
|
Entity.Builder |
blockReferences(Consumer<BlockReference.Builder>... blockReferences)
A reference to each block for this entity.
|
Entity.Builder |
endOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
|
Entity.Builder |
score(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
Entity.Builder |
text(String text)
The text of the entity.
|
Entity.Builder |
type(EntityType type)
The entity type.
|
Entity.Builder |
type(String type)
The entity type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEntity.Builder score(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.Entity.Builder type(String type)
The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below.
For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.
type - The entity type. For entity detection using the built-in model, this field contains one of the
standard entity types listed below.
For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.
EntityType,
EntityTypeEntity.Builder type(EntityType type)
The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below.
For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.
type - The entity type. For entity detection using the built-in model, this field contains one of the
standard entity types listed below.
For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.
EntityType,
EntityTypeEntity.Builder text(String text)
The text of the entity.
text - The text of the entity.Entity.Builder beginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the entity.
This field is empty for non-text input.
beginOffset - The zero-based offset from the beginning of the source text to the first character in the entity.
This field is empty for non-text input.
Entity.Builder endOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the entity.
This field is empty for non-text input.
endOffset - The zero-based offset from the beginning of the source text to the last character in the entity.
This field is empty for non-text input.
Entity.Builder blockReferences(Collection<BlockReference> blockReferences)
A reference to each block for this entity. This field is empty for plain-text input.
blockReferences - A reference to each block for this entity. This field is empty for plain-text input.Entity.Builder blockReferences(BlockReference... blockReferences)
A reference to each block for this entity. This field is empty for plain-text input.
blockReferences - A reference to each block for this entity. This field is empty for plain-text input.Entity.Builder blockReferences(Consumer<BlockReference.Builder>... blockReferences)
A reference to each block for this entity. This field is empty for plain-text input.
This is a convenience method that creates an instance of theBlockReference.Builder avoiding the need to create
one manually via BlockReference.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #blockReferences(List.
blockReferences - a consumer that will call methods on
BlockReference.Builder#blockReferences(java.util.Collection) Copyright © 2023. All rights reserved.