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

Fixed issue in _preprocess_text #12

Closed
wants to merge 3 commits into from
Closed

Conversation

Tejas-11
Copy link

@Tejas-11 Tejas-11 commented Aug 9, 2019

list.remove(xyz) function in python removes only the first occurrence of xyz from list. The existing code is not removing all occurrences of words_to_remove, just the first occurrences of each word_to_remove in phrase.

updated _preprocess_text() to handle multiple occurrences of word_to_remove and remove every thing between brackets
added missing :
updated regex for removing parentheses
@nikvaessen
Copy link
Collaborator

Should not be an issue with the new processing API

@nikvaessen nikvaessen closed this Mar 21, 2020
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.

2 participants