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

Issue with zero followed by characters resulting in dropped data #114

Open
Masame opened this issue Jun 5, 2024 · 0 comments
Open

Issue with zero followed by characters resulting in dropped data #114

Masame opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Masame
Copy link

Masame commented Jun 5, 2024

testing_text_to_num = alpha2digit("""Please call me at one two three four five six seven eight nine zero in reference to ticket C F zero three two zero seven eight two""", 'en', ordinal_threshold=0)

The expected result would have been: 'Please call me at 1 2 3 4 5 6 7 8 9 0 in reference to ticket C F 03 2 07 8 2'
or ''Please call me at 1 2 3 4 5 6 7 8 9 zero in reference to ticket C F 03 2 07 8 2'

The actual result was: 'Please call me at 1 2 3 4 5 6 7 8 9 in reference to ticket C F 03 2 07 8 2'

If there is punctuation after the 'zero' it converts it to int just fine, if you remove the 'in' after 'zero' it converts it to an int as well. I get why it's having trouble (#42), but it should not be dropping the data.

@rtxm rtxm self-assigned this Jun 6, 2024
@rtxm rtxm added the bug Something isn't working label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants