en_us_normalization.production.verbalize.ElectronicFst
- class en_us_normalization.production.verbalize.ElectronicFst(verbatim: Optional[VerbatimFst] = None, cardinal: Optional[CardinalFst] = None)[source]
Finite state transducer for verbalizing electronic addresses. Most of the work is done at classification. At verbalization - we just need to remove the tags and expand some fields using verbatim or cardinal transducers. Specifically:
port is expanded with cardinal
username is expanded with verbatim, generating pronunciation for sequences of letters
password is expanded with verbatim, spelling sequences of letters
Examples of input/output strings:
electronic|username:cdf1|domain:abc.EDU| -> cdf one at abc dot EDU
- __init__(verbatim: Optional[VerbatimFst] = None, cardinal: Optional[CardinalFst] = None)[source]