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

Replacement of semicolon by visarga for normalization in Telugu creates invalid/misformed words #73

Open
ramSeraph opened this issue Sep 17, 2024 · 0 comments

Comments

@ramSeraph
Copy link

ramSeraph commented Sep 17, 2024

The rule to replace ':' with 'ః" during normalization unconditionally, creates unicode sequences which are not valid.

Example: "హైదరాబాద్:" becomes "హైదరాబాద్ః", which is not a valid/wellformed Telugu unicode sequence.

This is the offending rule in the TeluguNormalizer:

text=re.sub(r'([\u0c00-\u0c7f]):','\\1\u0c03',text)
@ramSeraph ramSeraph changed the title Replacement of semicolon by visarga for normalization in Telugu creates invalid words Replacement of semicolon by visarga for normalization in Telugu creates invalid/misformed words Sep 17, 2024
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