Created
November 2, 2017 14:19
-
-
Save khozzy/63f320c28ae0faa55d4c2869ea360259 to your computer and use it in GitHub Desktop.
This file contains 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.wordnet import WordNetLemmatizer | |
wordnet = WordNetLemmatizer() | |
wordnet_lemmas = [wordnet.lemmatize(token) for token in tokens] | |
untokenize(wordnet_lemmas) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment