Struct aws_sdk_comprehend::types::builders::EntityBuilder
source · #[non_exhaustive]pub struct EntityBuilder { /* private fields */ }
Expand description
A builder for Entity
.
Implementations§
source§impl EntityBuilder
impl EntityBuilder
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_score(&self) -> &Option<f32>
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn type(self, input: EntityType) -> Self
pub fn type(self, input: EntityType) -> Self
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.
sourcepub fn set_type(self, input: Option<EntityType>) -> Self
pub fn set_type(self, input: Option<EntityType>) -> Self
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.
sourcepub fn get_type(&self) -> &Option<EntityType>
pub fn get_type(&self) -> &Option<EntityType>
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.
sourcepub fn begin_offset(self, input: i32) -> Self
pub fn begin_offset(self, input: i32) -> Self
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.
sourcepub fn set_begin_offset(self, input: Option<i32>) -> Self
pub fn set_begin_offset(self, input: Option<i32>) -> Self
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.
sourcepub fn get_begin_offset(&self) -> &Option<i32>
pub fn get_begin_offset(&self) -> &Option<i32>
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.
sourcepub fn end_offset(self, input: i32) -> Self
pub fn end_offset(self, input: i32) -> Self
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.
sourcepub fn set_end_offset(self, input: Option<i32>) -> Self
pub fn set_end_offset(self, input: Option<i32>) -> Self
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.
sourcepub fn get_end_offset(&self) -> &Option<i32>
pub fn get_end_offset(&self) -> &Option<i32>
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.
sourcepub fn block_references(self, input: BlockReference) -> Self
pub fn block_references(self, input: BlockReference) -> Self
Appends an item to block_references
.
To override the contents of this collection use set_block_references
.
A reference to each block for this entity. This field is empty for plain-text input.
sourcepub fn set_block_references(self, input: Option<Vec<BlockReference>>) -> Self
pub fn set_block_references(self, input: Option<Vec<BlockReference>>) -> Self
A reference to each block for this entity. This field is empty for plain-text input.
sourcepub fn get_block_references(&self) -> &Option<Vec<BlockReference>>
pub fn get_block_references(&self) -> &Option<Vec<BlockReference>>
A reference to each block for this entity. This field is empty for plain-text input.
Trait Implementations§
source§impl Clone for EntityBuilder
impl Clone for EntityBuilder
source§fn clone(&self) -> EntityBuilder
fn clone(&self) -> EntityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityBuilder
impl Debug for EntityBuilder
source§impl Default for EntityBuilder
impl Default for EntityBuilder
source§fn default() -> EntityBuilder
fn default() -> EntityBuilder
source§impl PartialEq for EntityBuilder
impl PartialEq for EntityBuilder
source§fn eq(&self, other: &EntityBuilder) -> bool
fn eq(&self, other: &EntityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.