Update pii.py
Browse files
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"))
|