medcat.utils.ner
Submodules
Package Contents
Functions
|
|
|
Creates a new CDB or updates an existing one with new |
- medcat.utils.ner.metrics(p, return_df=False, plus_recall=0, tokenizer=None, dataset=None, merged_negative={0, 1, -100}, padding_label=-100, csize=15, subword_label=1, verbose=False)
TODO: This could be done better, for sure. But it works.
- medcat.utils.ner.deid_text(*args, **kwargs)
- Return type:
str
- medcat.utils.ner.make_or_update_cdb(json_path, cdb=None, min_count=0)
Creates a new CDB or updates an existing one with new concepts if the cdb argument is provided. All concepts that are less frequent than min_count will be ignored.
- Parameters:
json_path (str) – The json path
cdb (Optional[CDB]) – The CDB if present. Defaults to None.
min_count (int) – Minimum count to include. Defaults to 0.
- Returns:
CDB – The same or new CDB.
- Return type: