medkit.core.annotation#

Attributes#

Classes#

Annotation

Base annotation protocol for any modality (text, audio, etc.).

Module Contents#

class medkit.core.annotation.Annotation#

Bases: typing_extensions.Protocol

Base annotation protocol for any modality (text, audio, etc.).

Annotations can be attached to Document objects and can contain Attribute objects.

Attributes:
uidstr

Unique identifier of the annotation

labelstr

Label of the annotation, can be used to represent the “kind” of annotation. (ex: “sentence”, “disease”, etc)

keysset of str

Pipeline output keys to which the segment belongs to (cf Pipeline.)

attrsAttributeContainer

Attributes of the annotation, stored in an AttributeContainer for easier access.

uid: str#
label: str#
keys: set[str]#
attrs: medkit.core.attribute_container.AttributeContainer#
medkit.core.annotation.AnnotationType#