medkit.core.document
medkit.core.document#
Classes:
|
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
Annotationobjects.- 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
AnnotationContainerfor easier access (can be subclassed to add modality-specific features).raw_segment (medkit.core.annotation.AnnotationType) – Auto-generated segment containing the full unprocessed document.