word2number seems to be able to pull numbers from words out of a more general string:
w2n.word_to_num("I count it at two million three thousand nine hundred and eighty four or thereabouts")
#returns: 2003984
but is there also a way of plugging that back in to the original string?
For example, if I wanted something like:
w2n.word_to_num("I count it at two million three thousand nine hundred and eighty four or thereabouts", replace=True)
#returns: "I count it at 2003984 or thereabouts"
word2number
seems to be able to pull numbers from words out of a more general string:but is there also a way of plugging that back in to the original string?
For example, if I wanted something like: