diff --git a/anonymisation_onefile.spec b/anonymisation_onefile.spec index c559b37..34ebf2a 100644 --- a/anonymisation_onefile.spec +++ b/anonymisation_onefile.spec @@ -40,6 +40,13 @@ a = Analysis( 'transformers', 'tokenizers', 'torch', 'pdfplumber', 'ahocorasick', 'sklearn', 'scipy', 'pydantic', 'yaml', 'PIL', 'loguru', 'regex', + # optimum : utilisé par ner_manager_onnx.py (fallback NER legacy). + # Sans ça, la GUI affiche "NER indisponible : optimum.onnxruntime introuvable" + # si EDS-Pseudo échoue. Le pipeline principal (CamemBERT-bio ONNX + + # EDS-Pseudo + GLiNER) n'en dépend pas — mais l'absence du hiddenimport + # crée un message d'erreur cosmétique gênant. + 'optimum', 'optimum.onnxruntime', 'optimum.pipelines', + 'optimum.modeling_base', 'optimum.exporters.onnx', ], cipher=block_cipher, noarchive=False,