Externalize dictionaries and add anonymization review corpus
This commit is contained in:
@@ -8,6 +8,7 @@ import sys
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
import anonymizer_core_refactored_onnx as core
|
||||
from config_defaults import RUNTIME_DICTIONARIES_CONFIG_PATH
|
||||
|
||||
def test_chcb_detection():
|
||||
"""Test CHCB detection on the 2 documents with leaks."""
|
||||
@@ -53,7 +54,7 @@ def test_chcb_detection():
|
||||
out_dir=outdir,
|
||||
make_vector_redaction=False,
|
||||
also_make_raster_burn=False,
|
||||
config_path=Path("config/dictionnaires.yml"),
|
||||
config_path=RUNTIME_DICTIONARIES_CONFIG_PATH,
|
||||
use_hf=False,
|
||||
)
|
||||
|
||||
@@ -102,7 +103,7 @@ def test_chcb_detection():
|
||||
out_dir=outdir,
|
||||
make_vector_redaction=False,
|
||||
also_make_raster_burn=False,
|
||||
config_path=Path("config/dictionnaires.yml"),
|
||||
config_path=RUNTIME_DICTIONARIES_CONFIG_PATH,
|
||||
use_hf=False,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user