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

Bug when number mix with other words #69

Open
ycchhueannu opened this issue Jun 11, 2022 · 1 comment
Open

Bug when number mix with other words #69

ycchhueannu opened this issue Jun 11, 2022 · 1 comment

Comments

@ycchhueannu
Copy link

In my opinion the followings should not be treated as number.

>>> from word2number import w2n
>>> w2n.word_to_num('at least five million.')
5
>>> w2n.word_to_num('ten years later')
10
>>> w2n.word_to_num('two men and three women')
5
@zmerpez
Copy link

zmerpez commented Dec 25, 2022

print(w2n.word_to_num('2 million'))
1000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants