-
Hello! I am trying to remove some of the pre-defined recognizers as they are causing confusion with custom regex recognizers that are specific to my industry. I have tried using The Thanks so much |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @katiejim, The recognizer name is the class name, so to remove this recognizer, the right call would be: analyzer.registry.remove_recognizer("AuTfnRecognizer") Alternatively, you could start with an empty list of recognizers and add your own: from presidio_analyzer import AnalyzerEngine, RecognizerRegistry
registry = RecognizerRegistry()
registry.add_recognizer(my_recognizer)
analyzer = AnalyzerEngine(registry=registry)
analyzer.analyze(...) # would only return values detected by my_recognizer |
Beta Was this translation helpful? Give feedback.
-
Hello everyone and thanks for the support. I have a similar question. When I remove "DateRecognizer" it does not work. What am I doing wrong?
|
Beta Was this translation helpful? Give feedback.
Hi @katiejim,
The recognizer name is the class name, so to remove this recognizer, the right call would be:
Alternatively, you could start with an empty list of recognizers and add your own: