:py:mod:`medcat.utils.ner.helpers` ================================== .. py:module:: medcat.utils.ner.helpers Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: medcat.utils.ner.helpers.replace_entities_in_text medcat.utils.ner.helpers.make_or_update_cdb .. py:function:: replace_entities_in_text(text, entities, get_cui_name, redact = False) .. py:function:: 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. :param json_path: The json path :type json_path: str :param cdb: The CDB if present. Defaults to None. :type cdb: Optional[CDB] :param min_count: Minimum count to include. Defaults to 0. :type min_count: int :Returns: **CDB** -- The same or new CDB.