Created
September 21, 2020 13:53
-
-
Save megha444/b6ccc6aad568f54f6301f04544201313 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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