- Introduced by
- Steven Abney
- Year
- 1991
- Type
- NLP partial-parsing task
What does it do?
Chunking, also called shallow parsing, is a natural-language-processing task introduced by Steven Abney in 1991 that divides text into grammatical pieces, such as noun phrases and verb phrases, using part-of-speech tags.
It extracts useful syntactic structure without building a full parse tree of the sentence.
The intuition behind the method
A full syntactic parse describes how every word relates to every other word, which is expensive and often more than an application needs. Chunking takes a shortcut: starting from words already tagged with their parts of speech, it groups adjacent tags into flat, non-overlapping phrases. You learn that 'the small dog' is a noun phrase and 'is barking' is a verb phrase without resolving the complete grammatical tree, which gives phrase-level structure without the work of a full parse.
History
Steven Abney introduced chunking in 1991 in 'Parsing by Chunks', as a chunk-based approach to partial parsing. The task was later given a common dataset and evaluation through the CoNLL-2000 shared task on chunking (Tjong Kim Sang & Buchholz, 2000).
When to use it
Choose chunking when your text is already part-of-speech tagged and you need phrase-level structure, such as noun and verb phrases, without the cost of a full syntactic parse. It suits descriptive or exploratory analysis of grammatical phrase patterns, and preprocessing for information extraction. Do not choose it when you need nested or complete syntactic structure, when POS tagging is unavailable or unreliable, or when no chunk grammar or model exists for your language. No validated minimum sample size is established for chunking, so judge whether your data is sufficient by evaluating the output on a held-out sample (see the FAQ on accuracy).
Limitations and considerations
- Normally requires part-of-speech tagged input; tagging errors typically reduce chunk accuracy.
- Needs a chunk grammar or model that matches the target language: rule-based chunkers need a grammar written by hand for that language, and trained chunkers need annotated chunk data in it.
- Produces only flat, non-overlapping phrases; it does not recover the full nested syntactic structure.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Extracts useful phrase-level structure without building a full parse tree.
- Works from POS tags with simple, transparent pattern rules that are easy to inspect and adjust.
- Provides phrase-level building blocks (noun and verb phrases) for downstream tasks such as information extraction.
Applications
- Information extraction — isolating noun and verb phrases as candidate entities and relations.
- Preprocessing for named-entity recognition by surfacing noun-phrase boundaries.
- Fast structural analysis of large text corpora where full parsing is too costly.
- Exploratory and descriptive study of grammatical phrase patterns in a corpus.
How it works
How it works
The method starts from text that has already been part-of-speech tagged, so each token carries a label such as determiner, adjective, noun, or verb. Chunking is normally applied to POS-tagged text, because chunk grammars are defined as patterns over these tags rather than over raw words.
A chunk grammar is specified for the target language, typically as patterns over POS tags (for example, a noun phrase as an optional determiner, any adjectives, then a noun). A rule set or trained model for the language must be available for this to succeed.
The grammar is applied across the tagged sequence, grouping adjacent tags that match a pattern into flat, non-overlapping chunks. Unlike full parsing, chunks are not nested into a complete tree, so the parse stays shallow.
The identified phrase chunks, such as noun phrases and verb phrases, are read off as the output. These shallow structures feed downstream tasks such as information extraction or named-entity recognition.
Common pitfalls
- Running chunking on untagged or poorly tagged text. Chunk grammars operate on POS tags, so tagging errors typically reduce chunk accuracy.
- Reusing a chunk grammar built for one language on another; the pattern rules must match the target language.
- Expecting nested or complete syntactic structure from a shallow parser. Chunks are flat by design, so use full parsing when deep structure is required.
Frequently asked questions
How is chunking different from full parsing?
Full parsing builds a complete syntactic tree showing how every word relates to every other word. Chunking is a shallow parse: it groups adjacent words into flat, non-overlapping phrases such as noun and verb phrases, without nesting them into a full tree. Because it skips the full tree, it is often sufficient for tasks that only need phrase-level structure.
Do I need part-of-speech tagging before chunking?
Yes, in the usual setup. Chunk grammars are defined as patterns over POS tags, so the chunker normally works on tagged text rather than raw words. Tagging errors typically reduce chunk accuracy, so check the tagger's accuracy on your data before relying on the chunks.
Does chunking work for any language?
It works only where a chunk grammar or trained model exists for the target language. Rule-based chunkers need a grammar written by hand for that language, and trained chunkers need annotated chunk data in it. The pattern rules are language-specific, so a grammar written for one language should not be applied to another.
What does chunking produce?
It produces flat, non-overlapping phrase chunks, typically noun phrases and verb phrases, read off the tagged sequence. In the common per-token encoding, each token receives a chunk tag such as B-NP (beginning of a noun phrase), I-NP (inside a noun phrase), B-VP or I-VP (beginning or inside a verb phrase), or O (outside any chunk). This IOB-style notation is the one used in the CoNLL-2000 data, and span boundaries follow from these tags. The shallow structures are commonly used as input to information extraction and named-entity recognition.
How do I judge whether the chunks are accurate enough?
Chunking output is usually evaluated against a gold-annotated sample using precision, recall and F1. The CoNLL-2000 shared task on chunking scored chunks this way, counting a chunk as correct only when both its boundaries and its type match the gold annotation exactly (Tjong Kim Sang & Buchholz, 2000). Annotate or obtain a held-out sample from your own corpus and compare the chunker's output against it before relying on the results.
Related methods
Sources
Abney, S. (1991). Parsing by Chunks. In Principle-Based Parsing. Kluwer Academic Publishers.
ISBN: 978-0-7923-1173-4Tjong Kim Sang, E.F. & Buchholz, S. (2000). Introduction to the CoNLL-2000 Shared Task: Chunking. Proceedings of CoNLL-2000.
Open publication reference