Farnazgh commited on
Commit
1e1de4a
1 Parent(s): 79d722e

remove french_nid

Browse files
Files changed (2) hide show
  1. presidio_helpers.py +1 -1
  2. recognizers.yaml +11 -11
presidio_helpers.py CHANGED
@@ -98,7 +98,7 @@ def get_supported_entities(
98
  # return analyzer_engine(
99
  # model_family, model_path, ta_key, ta_endpoint
100
  # ).get_supported_entities() + ["GENERIC_PII"]
101
- return ["PERSON", "IBAN_CODE", "PHONE_NUMBER", "CREDIT_CARD", "CRYPTO", "DATE_TIME", "EMAIL_ADDRESS", "IP_ADDRESS", "NRP", "LOCATION", "URL", "FRENCH_SSN", "FRENCH_PASS", "FRENCH_NID"]
102
  #
103
 
104
 
 
98
  # return analyzer_engine(
99
  # model_family, model_path, ta_key, ta_endpoint
100
  # ).get_supported_entities() + ["GENERIC_PII"]
101
+ return ["PERSON", "IBAN_CODE", "PHONE_NUMBER", "CREDIT_CARD", "CRYPTO", "DATE_TIME", "EMAIL_ADDRESS", "IP_ADDRESS", "NRP", "LOCATION", "URL", "FRENCH_SSN", "FRENCH_PASS"]
102
  #
103
 
104
 
recognizers.yaml CHANGED
@@ -10,17 +10,17 @@ recognizers:
10
  # context:
11
  # - national
12
  # supported_entity: "FRENCH_NID"
13
- -
14
- name: "FRENCH_NID"
15
- supported_language: "en"
16
- patterns:
17
- -
18
- name: "FRENCH_NID"
19
- regex: "[0-9]{12}|([A-Z]|[0-9]){9}"
20
- score: 0.5
21
- context:
22
- - national
23
- supported_entity: "FRENCH_NID"
24
  -
25
  name: "FRENCH_PASS"
26
  supported_language: "fr"
 
10
  # context:
11
  # - national
12
  # supported_entity: "FRENCH_NID"
13
+ # -
14
+ # name: "FRENCH_NID"
15
+ # supported_language: "en"
16
+ # patterns:
17
+ # -
18
+ # name: "FRENCH_NID"
19
+ # regex: "[0-9]{12}|([A-Z]|[0-9]){9}"
20
+ # score: 0.5
21
+ # context:
22
+ # - national
23
+ # supported_entity: "FRENCH_NID"
24
  -
25
  name: "FRENCH_PASS"
26
  supported_language: "fr"