Skip to content

Instantly share code, notes, and snippets.

@nishad
Forked from acrymble/remove-stopwords.py
Created April 27, 2018 08:50
Show Gist options
  • Save nishad/ff0520b6765f3f753b117c60f18b116a to your computer and use it in GitHub Desktop.
Save nishad/ff0520b6765f3f753b117c60f18b116a to your computer and use it in GitHub Desktop.
Python Remove Stopwords
# 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