Articles → NLP → Noun_Chunks In Spacy
Noun_Chunks In Spacy
Purpose
What Is A Noun Phrase?
| Noun Phrase | Head Noun | Modifiers |
|---|
| the red car | car | the, red |
| a tall building | building | a, tall |
| my new phone | phone | my, new |
Example
import spacynlp = 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
| Posted By - | Karan Gupta |
| |
| Posted On - | Friday, December 26, 2025 |