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

remove all spécial caracters from the sentence #97

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

remove all spécial caracters from the sentence #97

wants to merge 7 commits into from

Conversation

dbsaymen
Copy link

No description provided.

Copy link
Contributor

@kdavis-mozilla kdavis-mozilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You aren't considering all languages. For example you are removing valid characters in Greek.

@dbsaymen
Copy link
Author

i will move the filter to the "fr" file

import re

# All special characters
FILTER_SYMBOLES_REG = re.compile(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While FILTER_SYMBOLES_REG seems useful what might be better is a white list instead of a black list.

For example, the characters 男性 are not in your black list and would pass through un-altered.

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

Successfully merging this pull request may close these issues.

None yet

2 participants