Lemmatization - doraithodla/notes GitHub Wiki
Lemmatizing is the process of reducing words to their base or root form, known as the lemma. It is often used in natural language processing to help with text analysis and information retrieval.
In Python, the most popular library for lemmatization is the Natural Language Toolkit (NLTK). Here is an example of how to lemmatize a sentence using NLTK:
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
word = "running"
lemmatized_word = lemmatizer.lemmatize(word, pos="v")
print(lemmatized_word)
Output:
run