Articles → NLP → Noun_Chunks In Spacy

Noun_Chunks In Spacy






Purpose





What Is A Noun Phrase?




Noun PhraseHead NounModifiers
the red carcarthe, red
a tall buildingbuildinga, tall
my new phonephonemy, new



Example


import spacy

nlp = spacy.load("en_core_web_sm")
doc = nlp("The quick brown fox jumps over the lazy dog.")

for chunk in doc.noun_chunks:
    print(chunk.text, " → Head:", chunk.root.text)



Output


Picture showing the output of noun_chunks in spacy





Posted By  -  Karan Gupta
 
Posted On  -  Friday, December 26, 2025

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250