From 10d85d1895bc785305920f5ee204ad5e169d0807 Mon Sep 17 00:00:00 2001
From: Pablo Mosteiro
Date: Thu, 22 Jun 2023 16:42:05 +0200
Subject: [PATCH] update to the new version
---
deidentify/methods/deduce/run_deduce.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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',