Struct aws_sdk_comprehend::model::Entity
source · #[non_exhaustive]pub struct Entity { /* private fields */ }Expand description
Provides information about an entity.
Implementations§
source§impl Entity
impl Entity
sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn type(&self) -> Option<&EntityType>
pub fn type(&self) -> Option<&EntityType>
The entity's type.
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn begin_offset(&self) -> Option<i32>
The zero-based offset from the beginning of the source text to the first character in the entity.
sourcepub fn end_offset(&self) -> Option<i32>
pub fn end_offset(&self) -> Option<i32>
The zero-based offset from the beginning of the source text to the last character in the entity.