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

fix number with shortform #222

Closed
huseinzol05 opened this issue Feb 27, 2025 · 1 comment
Closed

fix number with shortform #222

huseinzol05 opened this issue Feb 27, 2025 · 1 comment

Comments

@huseinzol05
Copy link
Member

import malaya
normalizer = malaya.normalize.normalizer()
i = 'covid-19'
string = normalizer.normalize(
    i, normalize_text = True, normalize_word_rules = False, normalize_time = True, normalize_cardinal = True)
string

normalized become sembilan belas, basically it been removed because hit condition from malaya.text.normalization import normalize_numbers_with_shortform

@huseinzol05
Copy link
Member Author

Fixed at commit 0a1bfd8

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

1 participant