Created
July 5, 2011 19:32
-
-
Save acrymble/1065679 to your computer and use it in GitHub Desktop.
Python Remove Stopwords
This file contains hidden or 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
# 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