ShailChoksi / text2digits

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

Large numbers like 123456789 incorrectly converted #40

Open ottokart opened 3 years ago

ottokart commented 3 years ago
>>> from text2digits import text2digits
>>> t2d = text2digits.Text2Digits()
>>> t2d.convert("hundred twenty three million four hundred fifty six thousand seven hundred and eighty nine")
'23057289'

Expected output is: 123456789