Articles → NLP → Lemmatization In Spacy

Lemmatization In Spacy






Purpose




Word FormLemma (Base Form)
RunningRun
RanRun
CarsCar
BetterGood
StudiesStudy



Example


import spacy

nlp = spacy.load("en_core_web_sm")

doc = nlp("The striped bats are hanging on their feet for best")

for token in doc:
    print(token.text, "→", token.lemma_)



Output


Picture showing the output of lemmatization in spacy



Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 24, 2025
 
Updated On  -  Monday, January 19, 2026

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250