Externalize dictionaries and add anonymization review corpus
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user