Actualiser conf/default.yaml
This commit is contained in:
@@ -30,7 +30,7 @@ nlp_configuration:
|
|||||||
PERSON: 0.85
|
PERSON: 0.85
|
||||||
ORGANIZATION: 0.55
|
ORGANIZATION: 0.55
|
||||||
|
|
||||||
# 2. CONFIGURATION DU REGISTRE DES DÉTECTEURS
|
# 2. CONFIGURATION DU REGISTRE DES DÉTECTEURS (AVEC L'AJOUT POUR LES WARNINGS)
|
||||||
# =====================================================================
|
# =====================================================================
|
||||||
recognizer_registry:
|
recognizer_registry:
|
||||||
load_predefined_recognizers: true
|
load_predefined_recognizers: true
|
||||||
@@ -63,7 +63,7 @@ recognizer_registry:
|
|||||||
patterns:
|
patterns:
|
||||||
- name: Numéro téléphone Belge (fixe ou mobile)
|
- name: Numéro téléphone Belge (fixe ou mobile)
|
||||||
regex: "\\b0[1-9](?:[./\\s]?\\d{2,3}){3}\\b"
|
regex: "\\b0[1-9](?:[./\\s]?\\d{2,3}){3}\\b"
|
||||||
score: 0.95
|
score: 0.8 # score abaissé pour éviter concurrence avec IBAN
|
||||||
context: ["Tel", "Tél", "téléphone", "gsm", "mobile"]
|
context: ["Tel", "Tél", "téléphone", "gsm", "mobile"]
|
||||||
|
|
||||||
- name: SmartOrganizationRecognizer
|
- name: SmartOrganizationRecognizer
|
||||||
@@ -110,8 +110,7 @@ recognizer_registry:
|
|||||||
supported_entity: IBAN
|
supported_entity: IBAN
|
||||||
patterns:
|
patterns:
|
||||||
- name: IBAN Pattern
|
- name: IBAN Pattern
|
||||||
# Remplacement de \s? par \s obligatoire pour éviter recouvrement trop grand
|
regex: "\\b[A-Z]{2}[0-9]{2}(?:\\s[0-9]{4}){3}\\b"
|
||||||
regex: "\\b[A-Z]{2}[0-9]{2}(?:\\s[A-Z0-9]{4}){4,7}\\b"
|
|
||||||
score: 0.95
|
score: 0.95
|
||||||
context: ["iban", "compte"]
|
context: ["iban", "compte"]
|
||||||
|
|
||||||
@@ -143,8 +142,7 @@ recognizer_registry:
|
|||||||
- name: IPv6
|
- name: IPv6
|
||||||
regex: "\\b([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}\\b"
|
regex: "\\b([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}\\b"
|
||||||
score: 0.9
|
score: 0.9
|
||||||
# On retire le contexte pour plus de souplesse
|
# Pas de contexte pour détecter partout
|
||||||
# context: ["adresse ip", "ip", "serveur", "exposé"]
|
|
||||||
|
|
||||||
# 3. LISTE D'EXCLUSION
|
# 3. LISTE D'EXCLUSION
|
||||||
# =====================================================================
|
# =====================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user