Skip to content

Instantly share code, notes, and snippets.

@shubham769

shubham769/remove stopwords.py Secret

Created Apr 29, 2020
Embed
What would you like to do?
import nltk
stop_words = set(stopwords.words("english"))
sentence = "We are one of the organization using tensorflow heavily."
words = nltk.word_tokenize(sentence)
without_stop_words = [word for word in words if not word in stop_words]
print(without_stop_words)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.