Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python 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: #python #remove #stop #words
ADD COMMENT
Topic
Name
7+9 =