Skip to content

Instantly share code, notes, and snippets.

@megha444
Created September 21, 2020 13:53
Show Gist options
  • Save megha444/b6ccc6aad568f54f6301f04544201313 to your computer and use it in GitHub Desktop.
Save megha444/b6ccc6aad568f54f6301f04544201313 to your computer and use it in GitHub Desktop.
from nltk.corpus import stopwords
stop_words=stopwords.words('english')
lines_without_stopwords=[]
for line in lines:
stop_removed=[]
for line in word_tokens:
for word in line:
if word not in stop_words:
stop_removed.append(word)
print (stop_removed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment