Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Write stopwrods from nltk corpora/stopwords to a text file
from nltk.corpus import stopwords
with open("./stopwords.txt",'w') as outFile:
stop_words = set(stopwords.words('english'))
for w in stop_words:
outFile.write(w+"\n")
outFile.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment