Articles → SPACY → Lemmatization In Spacy

Lemmatization In Spacy






Purpose





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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250