Externalize dictionaries and add anonymization review corpus
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
from pathlib import Path
|
||||
import anonymizer_core_refactored_onnx as core
|
||||
from config_defaults import RUNTIME_DICTIONARIES_CONFIG_PATH
|
||||
|
||||
# Tester avec un seul PDF
|
||||
test_pdf = Path("/home/dom/Téléchargements").rglob("*.pdf")
|
||||
@@ -16,7 +17,7 @@ if test_pdf:
|
||||
Path("/tmp/test_gui"),
|
||||
make_vector_redaction=False,
|
||||
also_make_raster_burn=True,
|
||||
config_path=Path("config/dictionnaires.yml"),
|
||||
config_path=RUNTIME_DICTIONARIES_CONFIG_PATH,
|
||||
use_hf=False,
|
||||
)
|
||||
print(f"✅ Succès: {result}")
|
||||
|
||||
Reference in New Issue
Block a user