Python: How to convert written numbers to integer? -


this question has answer here:

is there library helps convert written numbers integers? example "three cows , twenty 1 horses" "3 cows , 21 horses".

not aware of library (as in "pip install" type), quick google search turned helpful class:

http://code.activestate.com/recipes/550818-words-to-numbers-english/


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -