Externalize dictionaries and add anonymization review corpus
This commit is contained in:
@@ -16,6 +16,7 @@ import re
|
||||
# Ajouter le répertoire racine au path
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
from config_defaults import RUNTIME_DICTIONARIES_CONFIG_PATH
|
||||
from anonymizer_core_refactored_onnx import process_pdf
|
||||
|
||||
def test_phase1_corrections():
|
||||
@@ -52,7 +53,7 @@ def test_phase1_corrections():
|
||||
# Anonymiser le document
|
||||
result = process_pdf(
|
||||
pdf_path=pdf_path,
|
||||
config_path=Path("config/dictionnaires.yml"),
|
||||
config_path=RUNTIME_DICTIONARIES_CONFIG_PATH,
|
||||
ner_manager=None,
|
||||
eds_pseudo_manager=None,
|
||||
vlm_manager=None,
|
||||
|
||||
Reference in New Issue
Block a user