Entity
¶
Source code in docs_src/capo_comprehend/types/entity.py
begin_offset
instance-attribute
¶
begin_offset: NotRequired[Integer]
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.
block_references
instance-attribute
¶
block_references: NotRequired[ListOfBlockReferences]
A reference to each block for this entity. This field is empty for plain-text input.
end_offset
instance-attribute
¶
end_offset: NotRequired[Integer]
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.
score
instance-attribute
¶
score: NotRequired[Float]
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
type
instance-attribute
¶
type: NotRequired[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.