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

@@ -6,6 +6,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
import anonymizer_core_refactored_onnx as core
from config_defaults import RUNTIME_DICTIONARIES_CONFIG_PATH
# Test avec un PDF simple
test_pdf = Path("/tmp/test_gui_pdfs")
@@ -31,7 +32,7 @@ try:
out_dir=out_dir,
make_vector_redaction=False,
also_make_raster_burn=True,
config_path=Path("config/dictionnaires.yml"),
config_path=RUNTIME_DICTIONARIES_CONFIG_PATH,
use_hf=False,
ner_manager=None,
ner_thresholds=None,