Externalize dictionaries and add anonymization review corpus

This commit is contained in:
2026-04-21 10:32:57 +02:00
parent 39db675052
commit 34dcf8f360
99 changed files with 1805 additions and 805 deletions

View File

@@ -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,