ShailChoksi / text2digits

Converts text such as "twenty three" to number/digit "23" in any sentence
MIT License
66 stars 22 forks source link

Infinity gives an error #14

Closed pandermatt closed 4 years ago

pandermatt commented 4 years ago
t2n = Text2Digits()
text = t2n.convert("infinity")

When passing infinity the code gives an error

ShailChoksi commented 4 years ago

Version 0.0.6 should solve this:

>>> from text2digits import text2digits
>>> t2d = text2digits.Text2Digits()
>>> t2d.convert("infinity")
'infinity'