Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use nltk to remove stop words

from nltk.corpus import stopwords
nltk.download("stopwords")
stop = set(stopwords.words("english"))
filtered_words = [word.lower() for word in text.split() if word.lower() not in stop]
 
PREVIOUS NEXT
Tagged: #nltk #remove #stop #words
ADD COMMENT
Topic
Name
5+2 =