I want to convert numeric which represented in words into numbers.
for example,
thirty four thousand four fifty
into its corresponding numerical value 34450
.
Also have some fuzzy conversions like "Please pay thirty-four thousand four fifty dollars"
then the output to be 34450
.
For numbers to words, try "num2words" package: https://pypi.python.org/pypi/num2words
For words to num, I tweaked the code slightly from the code here: Is there a way to convert number words to Integers?
-> five billion two hundred and twenty two thousand two hundred and twenty three point two eight
-> 5000222223.28