Constituency Parsing
Sentences nest. “The committee approved the plan on Friday” contains a smaller thing, “the plan”, inside a bigger thing, “approved the plan on Friday”, inside the sentence itself. Constituency parsing recovers that nesting: it returns a tree whose nodes are phrases, not merely a label per word.
What the tree says
Each node is a constituent — a contiguous span of words that behaves as a unit and carries a category such as NP (noun phrase), VP (verb phrase) or PP (prepositional phrase) — and the leaves are the words with their part-of-speech tags. The brackets are not decoration: a constituent can usually be replaced by a single pronoun, moved to the front, or given as the answer to a question, and that is how annotators decide where it begins and ends. Attachment is where the real ambiguity lives — in “she watched the man with the telescope”, who holds the telescope is a question about which node the prepositional phrase hangs from.
How parsers do it
Classic parsers search over a grammar with chart algorithms such as CKY, scoring rules learned from a treebank — the Penn Treebank being the canonical English source. Current systems, the Berkeley neural parser among them, score candidate spans with a transformer encoder and assemble the best-scoring tree; accuracy is reported as labelled bracketing F1.
Why it matters
Explicit phrase structure is what lets a system find the subject of a long sentence, break a dense legal clause into shorter ones, or locate the exact span that answers a question. Dependency parsing answers a different question — which word governs which — and is cheaper and more common in pipelines; constituency structure is the better tool when the unit you need is a phrase rather than a relation.
Constituency parsing assigns a sentence a hierarchical phrase-structure tree, bracketing contiguous spans into nested constituents such as noun, verb and prepositional phrases. Grammars and span scores are learned from treebanks like the Penn Treebank, with chart algorithms or neural encoders producing the tree and labelled bracketing F1 measuring it. The explicit phrase boundaries settle attachment ambiguity and give downstream tasks the phrase-sized units a flat per-token analysis cannot express.
Think of how a long sentence feels when you read it aloud. You pause in certain places, because words come in groups, and groups sit inside bigger groups. “The committee approved the plan on Friday” holds “the plan” inside “approved the plan on Friday”.
Constituency parsing is software drawing that nesting out, rather like the sentence diagrams of old grammar lessons. Why bother? Because the nesting settles real confusions. In “she watched the man with the telescope”, the diagram decides who was holding the telescope — and a machine that cannot decide will answer questions about the sentence wrongly.