en_us_normalization.production.classify.TelephoneFst
- class en_us_normalization.production.classify.TelephoneFst[source]
Finite state transducer for classifying telephone numbers. Telephone numbers consist of:
country code (optional): +***
number part separated by dashes or brackets: ***-***-****, or (***) ***-****
extension at the end of number (optional): 1-9999
Examples of input/output strings:
+1 123-123-5678-1 -> telephone { country_code: “1” number_part: “123 123 5678” extension: “1” }