Skip to content

Entity

Source code in docs_src/capo_comprehendmedical/types/entity.py
class Entity(TypedDict, closed=True):
    id: NotRequired["capo_comprehendmedical.types.integer.Integer"]
    """<p> The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier. </p>"""
    begin_offset: NotRequired["capo_comprehendmedical.types.integer.Integer"]
    """<p> The 0-based character offset in the input text that shows where the entity begins. The offset returns the UTF-8 code point in the string. </p>"""
    end_offset: NotRequired["capo_comprehendmedical.types.integer.Integer"]
    """<p> The 0-based character offset in the input text that shows where the entity ends. The offset returns the UTF-8 code point in the string. </p>"""
    score: NotRequired["capo_comprehendmedical.types.float.Float"]
    """<p>The level of confidence that Amazon Comprehend Medical has in the accuracy of the detection.</p>"""
    text: NotRequired["capo_comprehendmedical.types.string.String"]
    """<p> The segment of input text extracted as this entity.</p>"""
    category: NotRequired["capo_comprehendmedical.types.entity_type.EntityType"]
    """<p> The category of the entity.</p>"""
    type: NotRequired["capo_comprehendmedical.types.entity_sub_type.EntitySubType"]
    """<p> Describes the specific type of entity with category of entities.</p>"""
    traits: NotRequired["capo_comprehendmedical.types.trait_list.TraitList"]
    """<p>Contextual information for the entity.</p>"""
    attributes: NotRequired["capo_comprehendmedical.types.attribute_list.AttributeList"]
    """<p> The extracted attributes that relate to this entity.</p>"""

attributes instance-attribute

attributes: NotRequired[AttributeList]

The extracted attributes that relate to this entity.

begin_offset instance-attribute

begin_offset: NotRequired[Integer]

The 0-based character offset in the input text that shows where the entity begins. The offset returns the UTF-8 code point in the string.

category instance-attribute

category: NotRequired[EntityType]

The category of the entity.

end_offset instance-attribute

end_offset: NotRequired[Integer]

The 0-based character offset in the input text that shows where the entity ends. The offset returns the UTF-8 code point in the string.

id instance-attribute

id: NotRequired[Integer]

The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.

score instance-attribute

score: NotRequired[Float]

The level of confidence that Amazon Comprehend Medical has in the accuracy of the detection.

text instance-attribute

text: NotRequired[String]

The segment of input text extracted as this entity.

traits instance-attribute

traits: NotRequired[TraitList]

Contextual information for the entity.

type instance-attribute

type: NotRequired[EntitySubType]

Describes the specific type of entity with category of entities.