Created
October 24, 2012 10:22
-
-
Save language-engineering/3945353 to your computer and use it in GitHub Desktop.
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
| from nltk.stem.porter import PorterStemmer | |
| stemmer = PorterStemmer() #Create a new stemmer | |
| stemmed = stemmer.stem("complications") #Example usage, stemming a single word | |
| #You will need to stem all of the words in a review, | |
| #this will require iterating over them with a loop or list comprehension |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment