Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not convert numbers containing word and #35

Open
Chaitanya-Jadhav opened this issue Jul 20, 2020 · 5 comments
Open

Does not convert numbers containing word and #35

Chaitanya-Jadhav opened this issue Jul 20, 2020 · 5 comments
Labels
python version only The bug does not exist on the Rust version

Comments

@Chaitanya-Jadhav
Copy link

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.

@rtxm
Copy link
Collaborator

rtxm commented Jul 20, 2020

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 rtxm added the python version only The bug does not exist on the Rust version label Aug 25, 2020
@ralphmapper
Copy link

Thank you for the package.

@rtxm Where is the rust version?

@rtxm
Copy link
Collaborator

rtxm commented May 28, 2021

it's being prepared for release… 😉

@rtxm
Copy link
Collaborator

rtxm commented Dec 6, 2021

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

@ffeldhaus
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python version only The bug does not exist on the Rust version
Projects
None yet
Development

No branches or pull requests

4 participants