adit94 commited on
Commit
4a522bd
·
verified ·
1 Parent(s): 74235b1

Update pii.py

Browse files
Files changed (1) hide show
  1. pii.py +1 -1
pii.py CHANGED
@@ -218,7 +218,7 @@ class PII_IDENTIFIER:
218
  flair_recognizer = FlairRecognizer(supported_language="de")
219
  print("Flair loaded")
220
 
221
- registry = RecognizerRegistry()
222
  #registry.load_predefined_recognizers()
223
  #registry.add_recognizer(SpacyRecognizer(supported_language="de"))
224
  #registry.add_recognizer(SpacyRecognizer(supported_language="en"))
 
218
  flair_recognizer = FlairRecognizer(supported_language="de")
219
  print("Flair loaded")
220
 
221
+ registry = RecognizerRegistry(supported_languages=["de"])
222
  #registry.load_predefined_recognizers()
223
  #registry.add_recognizer(SpacyRecognizer(supported_language="de"))
224
  #registry.add_recognizer(SpacyRecognizer(supported_language="en"))