medkit.core.document#

Classes:

Document(*args, **kwargs)

Base document protocol that must be implemented by document classes of all modalities (text, audio, etc).

class Document(*args, **kwargs)[source]#

Base document protocol that must be implemented by document classes of all modalities (text, audio, etc).

Documents can contain Annotation objects.

Variables
  • uid (str) – Unique identifier of the document

  • anns (medkit.core.annotation_container.AnnotationContainer[medkit.core.annotation.AnnotationType]) – Annotations of the document, stored in an AnnotationContainer for easier access (can be subclassed to add modality-specific features).

  • raw_segment (medkit.core.annotation.AnnotationType) – Auto-generated segment containing the full unprocessed document.