class en_us_normalization.production.verbalize.DecimalFst(cardinal: Optional[CardinalFst] = None)[source]

Finite state transducer for verbalizing decimal, i.e. number with integer and fractional part. Integer part is verbalized as a cardinal number. Fraction part is verbalized digit by digit. “point” is inserted in front of fractional part.

Grammar heavily reuses transducer for Cardinals.

Examples of input/output string:

  • decimal|negative:1|integer_part:12|fractional_part:5006| -> minus twelve point five o o six

__init__(cardinal: Optional[CardinalFst] = None)[source]

helper function that returns the whole decimal verbalization graph without token name deletion. this is needed if the whole decimal graph is reused in another semiotic class (for ex. measure)