akshaynagpal / w2n

Convert number words (eg. twenty one) to numeric digits (21)
http://w2n.readthedocs.io
MIT License
169 stars 78 forks source link

Handle numbers like `one twenty two` -> `122` #48

Open richiefeng opened 4 years ago

richiefeng commented 4 years ago

Currently it's not able to handle those numbers that are spelled in a spoken way

vadakattu commented 3 years ago

Just throwing this date example here as it seemed like the closest issue, and a common enough case that others might search for it:

from word2number import w2n
w2n.word_to_num('nineteen ninety six')
1716