Update default.yaml
This commit is contained in:
@@ -1,13 +1,61 @@
|
|||||||
# =====================================================================
|
# Configuration NLP unifiée
|
||||||
# CONFIGURATION PRESIDIO POUR DOCUMENTS FRANÇAIS/BELGES
|
nlp_configuration:
|
||||||
# =====================================================================
|
nlp_engine_name: spacy
|
||||||
|
models:
|
||||||
|
- lang_code: en
|
||||||
|
model_name: en_core_web_lg
|
||||||
|
- lang_code: fr
|
||||||
|
model_name: fr_core_news_sm
|
||||||
|
|
||||||
# Configuration du moteur de langage (NLP)
|
ner_model_configuration:
|
||||||
nlp_engine_name: spacy
|
model_to_presidio_entity_mapping:
|
||||||
supported_languages: [en, fr]
|
PER: PERSON
|
||||||
models:
|
PERSON: PERSON
|
||||||
- lang_code: en
|
ORG: ORGANIZATION
|
||||||
model_name: en_core_web_lg
|
ORGANIZATION: ORGANIZATION
|
||||||
- lang_code: fr
|
LOC: LOCATION
|
||||||
model_name: fr_core_news_sm
|
LOCATION: LOCATION
|
||||||
|
GPE: LOCATION
|
||||||
|
MISC: ORGANIZATION
|
||||||
|
|
||||||
|
confidence_threshold:
|
||||||
|
default: 0.35
|
||||||
|
EMAIL_ADDRESS: 0.4
|
||||||
|
PHONE_NUMBER: 0.5
|
||||||
|
PERSON: 0.6
|
||||||
|
|
||||||
|
labels_to_ignore:
|
||||||
|
- MISC
|
||||||
|
- CARDINAL
|
||||||
|
- EVENT
|
||||||
|
- LANGUAGE
|
||||||
|
- LAW
|
||||||
|
- MONEY
|
||||||
|
- ORDINAL
|
||||||
|
- PERCENT
|
||||||
|
- PRODUCT
|
||||||
|
- QUANTITY
|
||||||
|
- WORK_OF_ART
|
||||||
|
|
||||||
|
# Configuration des langues supportées
|
||||||
|
supported_languages:
|
||||||
|
- en
|
||||||
|
- fr
|
||||||
|
|
||||||
|
# Configuration du registre
|
||||||
|
recognizer_registry:
|
||||||
|
- default
|
||||||
|
|
||||||
|
# Liste d'exclusion pour éviter les faux positifs
|
||||||
|
allow_list:
|
||||||
|
- Contrat
|
||||||
|
- Document
|
||||||
|
- Société
|
||||||
|
- Montant
|
||||||
|
- Partie
|
||||||
|
- Annexe
|
||||||
|
- Euro
|
||||||
|
- EUR
|
||||||
|
- Taux
|
||||||
|
- Valeur
|
||||||
|
- Prix
|
||||||
|
|||||||
Reference in New Issue
Block a user