Last active
June 20, 2022 17:15
-
-
Save prafulgondane/66ffbef3ca322feae5502cddff3aea4d 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
# Lemmatization | |
from nltk.stem import WordNetLemmatizer | |
wordnet_lemmatizer = WordNetLemmatizer() | |
def lemmatizer(text): | |
lemm_text = [wordnet_lemmatizer.lemmatize(word) for word in text] | |
return lemm_text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment