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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -