Shallow Parsing

JA JASWANT Updated 25 Oct 2026
3 min read ·Lesson 65 of 87
In this post

Shallow parsing (also called chunking) identifies useful groups of words in a sentence — noun phrases, verb phrases, prepositional phrases — without building the complete grammatical tree a full ("dee

Shallow parsing (also called chunking) identifies useful groups of words in a sentence — noun phrases, verb phrases, prepositional phrases — without building the complete grammatical tree a full ("deep") parse would produce. This lesson works through an actual chunking pass on a real sentence, using a concrete grammar rule rather than just naming the phrase types, and names the specific kind of ambiguity shallow parsing structurally cannot resolve.

A Worked Chunking Example

Take the sentence "The quick brown fox jumps over the lazy dog," first tagged with its part of speech for each word (DT = determiner, JJ = adjective, NN = noun, VBZ = verb, IN = preposition):

The/DT  quick/JJ  brown/JJ  fox/NN  jumps/VBZ  over/IN  the/DT  lazy/JJ  dog/NN

A simple chunking rule for a noun phrase — NP := DT? JJ* NN (an optional determiner, zero or more adjectives, then a noun) — is applied by scanning the tagged sequence for stretches that match this pattern:

The/DT quick/JJ brown/JJ fox/NN  -> matches DT JJ JJ NN  -> chunk as [NP The quick brown fox]
jumps/VBZ                         -> a single verb        -> chunk as [VP jumps]
over/IN                           -> a preposition, starts a PP
the/DT lazy/JJ dog/NN             -> matches DT JJ NN      -> chunk as [NP the lazy dog]

A prepositional-phrase rule — PP := IN NP — then combines the preposition with the noun phrase immediately following it, giving the full chunked output:

[NP The quick brown fox] [VP jumps] [PP over [NP the lazy dog]]

Notice what this output does not contain: there's no single tree connecting the whole sentence together, no marked subject-verb-object relationship, and no indication of how the PP attaches to the rest of the sentence beyond sitting after the VP — shallow parsing stops at flat, non-overlapping chunks, which is exactly what makes it fast enough for real-time use while still extracting the pieces most NLP tasks actually need (the noun phrases for named-entity and information-extraction tasks, the verb phrase for identifying the action).

The Specific Ambiguity Shallow Parsing Cannot Resolve

"I saw the man with the telescope" is a textbook case of prepositional-phrase (PP) attachment ambiguity: the phrase with the telescope can attach to the man (describing a man who is carrying a telescope) or to saw (describing how the seeing was done — using a telescope), and the sentence is genuinely ambiguous between these two readings without more context. A shallow parser applied to this sentence would produce [NP the man] [PP with the telescope] as two separate flat chunks, and stop there — it has no mechanism for deciding which earlier constituent the PP attaches to, because answering that question requires building the kind of full attachment tree that a deep parser constructs and shallow parsing deliberately skips in exchange for speed. This is the concrete trade-off behind "shallow parsing balances speed and accuracy": the speed comes specifically from not resolving exactly this kind of attachment ambiguity.

Where the Techniques Behind Shallow Parsing Fit Together

Part-of-speech tagging (assigning DT, JJ, NN, and so on to each word) is the prerequisite step every chunking rule above depends on — without it, there's no tag sequence to match a pattern like DT JJ* NN against in the first place. It can be done with hand-written rules, statistical sequence models (Hidden Markov Models, Conditional Random Fields), or modern deep-learning taggers, all producing the same kind of tagged output the chunking rules above consume. Named Entity Recognition, which identifies that a noun phrase specifically names a person, place, or organization, builds directly on the same chunked noun phrases — it's a further classification step applied to spans shallow parsing has already identified, not a separate parsing stage from scratch.

0 Comments

Reviewed before they appear

No comments yet.

Data Mining
Introduction to Data Mining Data Mining Implementation Process Data Mining Architecture Data Mining Techniques KDD: Knowledge Discovery in Databases History of Data Mining Data Mining Tools Data Mining vs Machine Learning Facebook Data Mining Social Media Data Mining Methods Clustering in Data Mining Text Data Mining Bagging vs Boosting Data Mining vs Data Warehousing Social Media Data Mining Data Mining: Bayesian Classifiers Data Mining: World Wide Web Different Types of Clustering Bitcoin Mining and Blockchain Data Mining Orange Data Mining Data Mining vs Big Data Decision Tree Induction Educational Data Mining Data Mining in Healthcare Apriori Algorithm Data Integration in Data Mining Difference Between Data Mining and Text Mining Discretization in Data Mining Redundancy and Correlation in Data Mining Classification of Data Mining Systems Classification Algorithms in Data Mining Data Generalization in Data Mining Classification and Prediction in Data Mining Regression in Data Mining What Is an Outlier in Data Mining Data Cleaning in Data Mining Data Processing in Data Mining Data Mining Task Primitives Web Content Mining, Web Structure Mining, and Web Usage Mining Binning in Data Mining KDD vs. Data Mining Noise in Data Mining BIRCH in Data Mining Stemming in Data Mining Feature Transformation in Data Mining Visual and Audio Data Mining Class Comparison Methods in Data Mining Data Selection in Data Mining Tasks and Functionalities of Data Mining Ubiquitous and Invisible Data Mining Importance of Data Mining Data Quality in Data Mining Mining Frequent Patterns in Data Mining Data Warehouse and OLAP Technology for Data Mining Need for Data Mining Pattern Evaluation Methods in Data Mining Logarithms and Exponents in Complexity Analysis Time Series Clustering What is the C4.5 Algorithm and How Does It Work? Expanding Contractions in Text Mining Cosine Similarity in Data Mining Lazy Learning in Data Mining Neural Networks in Data Mining Building a Text Normalizer Shallow Parsing Data Pipeline Orchestration Big Data vs Small Data Myths of Data Mining Data Reduction in Data Mining Data Mining Models Difference Between Data Mining and Data Science Difference Between Data Mining and Statistics Difference Between Data Mining and Web Mining Difference Between Data Mining and Data Analysis Difference Between Business Intelligence and Data Mining Difference Between Data Mining and Data Visualization Data Mining vs Data Analytics Types of Data Mining Difference Between Data Profiling and Data Mining Predictive Analytics vs Data Mining Difference Between Data Mining and OLAP Descriptive and Predictive Data Mining Difference Between Spatial and Temporal Data Mining Difference Between Classification and Clustering in Data Mining Hierarchical Clustering in Data Mining Density-Based Clustering in Data Mining What Is Aggregation in Data Mining?
Ask about this post
AI Ask about this post

Ask questions about Shallow Parsing and get answers drawn from it.

Signed-in readers only.