Skip to content

Instantly share code, notes, and snippets.

@zaynaib
Forked from acrymble/remove-stopwords.py
Last active August 29, 2015 14:11
Show Gist options
  • Save zaynaib/0757f0aea446c3e953cd to your computer and use it in GitHub Desktop.
Save zaynaib/0757f0aea446c3e953cd to your computer and use it in GitHub Desktop.
# Given a list of words, remove any that are
# in a list of stop words.
def removeStopwords(wordlist, stopwords):
return [w for w in wordlist if w not in stopwords]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment