Struct aws_sdk_comprehend::output::detect_entities_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DetectEntitiesOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn entities(self, input: Entity) -> Self
pub fn entities(self, input: Entity) -> Self
Appends an item to entities.
To override the contents of this collection use set_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.
sourcepub fn set_entities(self, input: Option<Vec<Entity>>) -> Self
pub fn set_entities(self, input: Option<Vec<Entity>>) -> Self
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.
sourcepub fn document_metadata(self, input: DocumentMetadata) -> Self
pub fn document_metadata(self, input: DocumentMetadata) -> Self
Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
sourcepub fn set_document_metadata(self, input: Option<DocumentMetadata>) -> Self
pub fn set_document_metadata(self, input: Option<DocumentMetadata>) -> Self
Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
sourcepub fn document_type(self, input: DocumentTypeListItem) -> Self
pub fn document_type(self, input: DocumentTypeListItem) -> Self
Appends an item to document_type.
To override the contents of this collection use set_document_type.
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.
sourcepub fn set_document_type(self, input: Option<Vec<DocumentTypeListItem>>) -> Self
pub fn set_document_type(self, input: Option<Vec<DocumentTypeListItem>>) -> Self
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.
sourcepub fn blocks(self, input: Block) -> Self
pub fn blocks(self, input: Block) -> Self
Appends an item to blocks.
To override the contents of this collection use set_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.
sourcepub fn set_blocks(self, input: Option<Vec<Block>>) -> Self
pub fn set_blocks(self, input: Option<Vec<Block>>) -> Self
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.
sourcepub fn errors(self, input: ErrorsListItem) -> Self
pub fn errors(self, input: ErrorsListItem) -> Self
Appends an item to errors.
To override the contents of this collection use set_errors.
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
sourcepub fn set_errors(self, input: Option<Vec<ErrorsListItem>>) -> Self
pub fn set_errors(self, input: Option<Vec<ErrorsListItem>>) -> Self
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
sourcepub fn build(self) -> DetectEntitiesOutput
pub fn build(self) -> DetectEntitiesOutput
Consumes the builder and constructs a DetectEntitiesOutput.