medkit.text.ner.umls_norm_attribute
medkit.text.ner.umls_norm_attribute#
Classes:
|
Normalization attribute linking an entity to a CUI in the UMLS knowledge base |
- class UMLSNormAttribute(cui, umls_version, term=None, score=None, sem_types=None, metadata=None, uid=None)[source]#
Normalization attribute linking an entity to a CUI in the UMLS knowledge base
- Variables
uid – Identifier of the attribute
label – The attribute label, always set to
EntityNormAttribute.LABELvalue – Value of the attribute, built by prefixing the cui with “umls:”
kb_name – Name of the knowledge base. Always “umls”
kb_id – CUI (Concept Unique Identifier) to which the annotation should be linked
cui – Convenience alias of kb_id
kb_version – Version of the UMLS database (ex: “202AB”)
umls_version – Convenience alias of kb_version
term – Optional normalized version of the entity text
score – Optional score reflecting confidence of this link
sem_types (Optional[List[str]]) – Optional IDs of semantic types of the CUI (ex: [“T047”])
metadata – Metadata of the attribute