Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

nltk remove more stopwords

from stop_words import get_stop_words
from nltk.corpus import stopwords

stop_words = list(get_stop_words('en'))         #About 900 stopwords
nltk_words = list(stopwords.words('english')) #About 150 stopwords
stop_words.extend(nltk_words)

output = [w for w in word_list if not w in stop_words]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nltk #remove #stopwords
ADD COMMENT
Topic
Name
1+4 =