text2num icon indicating copy to clipboard operation
text2num copied to clipboard

Does not convert numbers containing word and

Open Chaitanya-Jadhav opened this issue 4 years ago • 5 comments

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.

Chaitanya-Jadhav avatar Jul 20 '20 09:07 Chaitanya-Jadhav

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.

rtxm avatar Jul 20 '20 10:07 rtxm

Thank you for the package.

@rtxm Where is the rust version?

ralphmapper avatar Apr 17 '21 11:04 ralphmapper

it's being prepared for release… :wink:

rtxm avatar May 28 '21 15:05 rtxm

There it is @ralphmapper : https://crates.io/crates/text2num

rtxm avatar Dec 06 '21 14:12 rtxm

@rtxm Will this be implemented in the Python version as well?

ffeldhaus avatar Jun 21 '22 09:06 ffeldhaus