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

Why not remove more stop-words in text processing??? #177

Open
JiaWenqi opened this issue Mar 13, 2019 · 1 comment
Open

Why not remove more stop-words in text processing??? #177

JiaWenqi opened this issue Mar 13, 2019 · 1 comment

Comments

@JiaWenqi
Copy link

JiaWenqi commented Mar 13, 2019

def get_all_words(self): """ Return all words tokenized, in lowercase and without punctuation """ return [w.lower() for w in word_tokenize(self.text) if w not in string.punctuation]
I found that in this function, only punctuation of the text was removed. But there are other types of words that have not been removed.
eg:
from nltk.corpus import stopwords words = stopwords.words('english')

@jstypka
Copy link
Collaborator

jstypka commented Mar 13, 2019

yeah, we want to leave the stopwords in for word2vec to work better.

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

2 participants