text2num
text2num copied to clipboard
Does not convert numbers containing word and
This is a very great package. And I appreciate all the hard work.
s = 'I want five hundred and sixty six rupees' alpha2digit(s,lang='en') returns 'I want 500 and 66 rupees'
But the desired output is following: 'I want 566 rupees'
Please suggest any option or work around to make this work efficiently. Thank You.
Thanks for the feedback! How would you write, in plain letters and punctuation, a legitimate "500 and 66 rupees"? I mean, how one can make the difference, in plain letters, between "566 rupees" and "500 and 66 rupees."? So that we can implement some heuristics.
Thank you for the package.
@rtxm Where is the rust version?
it's being prepared for release… :wink:
There it is @ralphmapper : https://crates.io/crates/text2num
@rtxm Will this be implemented in the Python version as well?