medcat.utils.postprocessing
Module Contents
Classes
Generic enumeration. |
Functions
|
|
|
|
|
Creates annotation in the spacy ents list |
- class medcat.utils.postprocessing.LabelStyle
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- short
- long
- medcat.utils.postprocessing.map_ents_to_groups(cdb, doc)
- Parameters:
cdb (medcat.cdb.CDB) –
doc (spacy.tokens.Doc) –
- Return type:
None
- medcat.utils.postprocessing.make_pretty_labels(cdb, doc, style=None)
- Parameters:
cdb (medcat.cdb.CDB) –
doc (spacy.tokens.Doc) –
style (Optional[LabelStyle]) –
- Return type:
None
- medcat.utils.postprocessing.create_main_ann(cdb, doc, tuis=None)
Creates annotation in the spacy ents list from all the annotations for this document.