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

Make stripping punctuations configurable option. #18

Closed
stultus opened this issue May 24, 2020 · 1 comment
Closed

Make stripping punctuations configurable option. #18

stultus opened this issue May 24, 2020 · 1 comment

Comments

@stultus
Copy link
Member

stultus commented May 24, 2020

There are cases where the normalized text is expected to retain the punctuations. As of now, the normalizer removes all punctuations. It will be good to make this a configurable option by passing an argument to the normalize method.

@asdofindia
Copy link
Collaborator

Have added a keep_punctuations option to normalize(). This should now be possible with:

normalize("some text", keep_punctuations=True)

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

No branches or pull requests

2 participants