-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
A NumOutOfRangeError is thrown when numbers longer than 36 digits are converted.
This makes the system prone to break, when the input text is unknown.
To reproduce:
>>> from g2p_en import G2p
>>> g2p_en = G2p()
>>> g2p_en('999999999999999999999999999999999999') # This works
['N', 'AY1', 'N', ' ', 'HH', 'AH1', 'N', ...]
>>> g2p_en('1000000000000000000000000000000000000') # This doesn't
...
inflect.NumOutOfRangeError
This error stems from the inspect.py module, which isn't part of this projects source code.
Workaround: Remove numbers longer than 36 digits instead of transforming them to words. This would lose some edge case information but is the only way to keep the transcribed output clean.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels