diff --git a/deidentify/methods/deduce/run_deduce.py b/deidentify/methods/deduce/run_deduce.py index 5a2df86..98cca5f 100644 --- a/deidentify/methods/deduce/run_deduce.py +++ b/deidentify/methods/deduce/run_deduce.py @@ -11,8 +11,10 @@ from deidentify.dataset.corpus_loader import CORPUS_PATH, CorpusLoader from deidentify.methods.deduce.deduce_labeler import DeduceAnnotator -NAME_PREFIX_REGEX = re.compile(r'({})\.?\s*'.format('|'.join(deduce.lookup_lists.PREFIXES)), - re.IGNORECASE) +NAME_PREFIX_REGEX = re.compile(r'({})\.?\s*'.format('|'.join( + deduce.lookup_sets.get_lookup_sets()['prefixes'] +)), + re.IGNORECASE) DEDUCE_ONS_TAG_MAPPING = { "PATIENT": 'Name',