Created
September 1, 2018 00:32
-
-
Save emmagrimaldi/33f86b28d0bef4fdf155b70d7f4868f3 to your computer and use it in GitHub Desktop.
wordnetlemmatizer
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
| # importing the library needed in this section | |
| from nltk.stem import WordNetLemmatizer | |
| # instantiating the lemmaztizer object | |
| lemmatizer = WordNetLemmatizer() | |
| # lemmatizing each word through a list comprehension | |
| [lemmatizer.lemmatize(token) for token in clean_tokens] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment