akshaynagpal / w2n

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

Error on parsing "first", "second", "third" etc. #31

Closed rutvij-rajdeo closed 5 years ago

rutvij-rajdeo commented 5 years ago

w2n.word_to_num("third") Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/word2number/w2n.py", line 154, in word_to_num raise ValueError("No valid number words found! Please enter a valid number word (eg. two million twenty three thousand and forty nine)") ValueError: No valid number words found! Please enter a valid number word (eg. two million twenty three thousand and forty nine)

akshaynagpal commented 5 years ago

Duplicate of #10 . This is a feature request.