Externalize dictionaries and add anonymization review corpus

This commit is contained in:
2026-04-21 10:32:57 +02:00
parent 012445755a
commit 500ebc28c2
99 changed files with 1805 additions and 805 deletions

View File

@@ -13,13 +13,18 @@ import json
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
try:
import yaml
except ImportError:
print("ERREUR : pyyaml requis (pip install pyyaml)")
sys.exit(1)
CONFIG = Path(__file__).parent.parent / "config" / "dictionnaires.yml"
from config_defaults import RUNTIME_DICTIONARIES_CONFIG_PATH
CONFIG = RUNTIME_DICTIONARIES_CONFIG_PATH
def merge_params(json_files: list, config_path: Path = CONFIG, dry_run: bool = False):