medcat¶
knowledge_graph.clinical.medcat
MedCAT model-pack inference with offset-preserving output, and unsupervised context adaptation on the 80 training notes.
python -m knowledge_graph.clinical.medcat [--evaluate-only] # writes runs/clinical/medcat/
load_pack(pack)
¶
Source code in src/knowledge_graph/clinical/medcat.py
23 24 25 26 | |
clinical_entities(cat, segment)
¶
MedCAT entities of one segment at note offsets, kept when a model-pack type is a clinical SNOMED category.
Source code in src/knowledge_graph/clinical/medcat.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |
predict(cat, docs, nlp, condition)
¶
Source code in src/knowledge_graph/clinical/medcat.py
48 49 50 51 52 | |
main()
¶
Source code in src/knowledge_graph/clinical/medcat.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |