You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
The text was updated successfully, but these errors were encountered:
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')
The text was updated successfully, but these errors were encountered: