medkit.core.text.entity_norm_attribute
medkit.core.text.entity_norm_attribute#
Classes:
|
Normalization attribute linking an entity to an ID in a knowledge base |
- class EntityNormAttribute(kb_name, kb_id, kb_version=None, term=None, score=None, metadata=None, uid=None)[source]#
Normalization attribute linking an entity to an ID in a knowledge base
- Variables
uid (str) – Identifier of the attribute
label (str) – The attribute label, always set to
EntityNormAttribute.LABELkb_name (Optional[str]) – Name of the knowledge base (ex: “icd”). Should always be provided except in special cases when we just want to store a normalized term.
kb_id (Optional[Any]) – ID in the knowledge base to which the annotation should be linked. Should always be provided except in special cases when we just want to store a normalized term.
kb_version (Optional[str]) – Optional version of the knowledge base.
term (Optional[str]) – Optional normalized version of the entity text.
score (Optional[float]) – Optional score reflecting confidence of this link.
metadata (Dict[str, Any]) – Metadata of the attribute
Attributes:
Label used for all normalization attributes
- LABEL: ClassVar[str] = 'NORMALIZATION'#
Label used for all normalization attributes