How to use the presidio-analyzer.analyzer.predefined_recognizers.us_phone_recognizer.UsPhoneRecognizer function in presidio-analyzer

To help you get started, we’ve selected a few presidio-analyzer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / us_phone_recognizer.py View on Github external
def __init__(self):
        patterns = [Pattern('Phone (strong)',
                            UsPhoneRecognizer.STRONG_REGEX,
                            UsPhoneRecognizer.STRONG_REGEX_SCORE),
                    Pattern('Phone (medium)',
                            UsPhoneRecognizer.MEDIUM_REGEX,
                            UsPhoneRecognizer.MEDIUM_REGEX_SCORE),
                    Pattern('Phone (weak)',
                            UsPhoneRecognizer.WEAK_REGEX,
                            UsPhoneRecognizer.WEAK_REGEX_SCORE)]
        super().__init__(supported_entity="PHONE_NUMBER",
                         patterns=patterns, context=CONTEXT)
github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / us_phone_recognizer.py View on Github external
def __init__(self):
        patterns = [Pattern('Phone (strong)',
                            UsPhoneRecognizer.STRONG_REGEX,
                            UsPhoneRecognizer.STRONG_REGEX_SCORE),
                    Pattern('Phone (medium)',
                            UsPhoneRecognizer.MEDIUM_REGEX,
                            UsPhoneRecognizer.MEDIUM_REGEX_SCORE),
                    Pattern('Phone (weak)',
                            UsPhoneRecognizer.WEAK_REGEX,
                            UsPhoneRecognizer.WEAK_REGEX_SCORE)]
        super().__init__(supported_entity="PHONE_NUMBER",
                         patterns=patterns, context=CONTEXT)
github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / us_phone_recognizer.py View on Github external
def __init__(self):
        patterns = [Pattern('Phone (strong)',
                            UsPhoneRecognizer.STRONG_REGEX,
                            UsPhoneRecognizer.STRONG_REGEX_SCORE),
                    Pattern('Phone (medium)',
                            UsPhoneRecognizer.MEDIUM_REGEX,
                            UsPhoneRecognizer.MEDIUM_REGEX_SCORE),
                    Pattern('Phone (weak)',
                            UsPhoneRecognizer.WEAK_REGEX,
                            UsPhoneRecognizer.WEAK_REGEX_SCORE)]
        super().__init__(supported_entity="PHONE_NUMBER",
                         patterns=patterns, context=CONTEXT)
github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / us_phone_recognizer.py View on Github external
def __init__(self):
        patterns = [Pattern('Phone (strong)',
                            UsPhoneRecognizer.STRONG_REGEX,
                            UsPhoneRecognizer.STRONG_REGEX_SCORE),
                    Pattern('Phone (medium)',
                            UsPhoneRecognizer.MEDIUM_REGEX,
                            UsPhoneRecognizer.MEDIUM_REGEX_SCORE),
                    Pattern('Phone (weak)',
                            UsPhoneRecognizer.WEAK_REGEX,
                            UsPhoneRecognizer.WEAK_REGEX_SCORE)]
        super().__init__(supported_entity="PHONE_NUMBER",
                         patterns=patterns, context=CONTEXT)
github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / us_phone_recognizer.py View on Github external
def __init__(self):
        patterns = [Pattern('Phone (strong)',
                            UsPhoneRecognizer.STRONG_REGEX,
                            UsPhoneRecognizer.STRONG_REGEX_SCORE),
                    Pattern('Phone (medium)',
                            UsPhoneRecognizer.MEDIUM_REGEX,
                            UsPhoneRecognizer.MEDIUM_REGEX_SCORE),
                    Pattern('Phone (weak)',
                            UsPhoneRecognizer.WEAK_REGEX,
                            UsPhoneRecognizer.WEAK_REGEX_SCORE)]
        super().__init__(supported_entity="PHONE_NUMBER",
                         patterns=patterns, context=CONTEXT)
github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / us_phone_recognizer.py View on Github external
def __init__(self):
        patterns = [Pattern('Phone (strong)',
                            UsPhoneRecognizer.STRONG_REGEX,
                            UsPhoneRecognizer.STRONG_REGEX_SCORE),
                    Pattern('Phone (medium)',
                            UsPhoneRecognizer.MEDIUM_REGEX,
                            UsPhoneRecognizer.MEDIUM_REGEX_SCORE),
                    Pattern('Phone (weak)',
                            UsPhoneRecognizer.WEAK_REGEX,
                            UsPhoneRecognizer.WEAK_REGEX_SCORE)]
        super().__init__(supported_entity="PHONE_NUMBER",
                         patterns=patterns, context=CONTEXT)

presidio-analyzer

Presidio Analyzer package

MIT
Latest version published 8 days ago

Package Health Score

94 / 100
Full package analysis

Similar packages