akshaynagpal / w2n

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

Multiple numbers in a string are conflated #40

Closed psychemedia closed 5 years ago

psychemedia commented 5 years ago
w2n.word_to_num("I count it at two million or thereabouts. The other was twenty-four I think.")

This returns 2000024 whereas I would expect [2000000, 24]