Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
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)
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)
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)
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)