AI Glossary / Graphs and symbolic AI / Advanced
Data-oriented parsing
Definition
Data-oriented parsing, or DOP, is an approach to analyzing language by combining fragments of previously analyzed utterances. In classical tree-based models, fragments from a treebank are recombined to build candidate parse trees, and corpus-derived probabilities help rank the alternatives.
What it means
A sentence can have more than one grammatical structure. The phrase “with the telescope,” for example, may describe an instrument used for seeing or an object associated with the person being seen. A parser needs a way to represent and compare such alternatives.
DOP uses more than isolated words and single grammar rules. A fragment can preserve a larger construction from an analyzed sentence, including several levels of structure and particular words. Smaller fragments still allow familiar pieces to be recombined in new ways.
The term names a particular family of corpus-based parsing models. It should not be used as a blanket synonym for every parser trained on data, and it is not simply retrieving the most similar complete sentence.
How it works
Start with a corpus whose utterances have structural annotations, such as labeled phrase-structure trees. A model specifies which fragments can be extracted, how they can combine and how their probabilities are estimated.
In a classical tree-substitution formulation, a fragment has a root category and may contain nonterminal leaves waiting to be filled. Another fragment with the matching root category can be substituted at an appropriate leaf. Repeated substitution constructs a complete tree whose terminal words match the input.
An important distinction is between a derivation and a parse. A derivation is one sequence of fragment choices; the parse is the resulting tree. Several derivations can produce exactly the same tree. In a standard probabilistic DOP formulation, the probability of that tree sums the probabilities of its distinct derivations.
Consequently, the single most probable derivation need not yield the most probable parse. Practical systems may constrain fragment extraction, use efficient representations or approximate inference, since large fragment collections and derivational ambiguity make exact computation demanding. Results depend on the chosen DOP variant rather than one universal implementation.
Three practical examples
- A research parser uses recurring phrase structures from an annotated treebank to rank alternative attachments in a new sentence.
- A domain-language experiment compares fragments from support requests with fragments from general news text.
- A linguistics teaching tool shows how one parse can be assembled from a large stored construction or from several smaller pieces.
Think of it this way
Think of building a new design from a library of previously used components. Some components are large assemblies, while others are small pieces that fit together flexibly. Two assembly sequences can produce the same final object.
The analogy concerns structural reuse. A parse fragment is a labeled linguistic structure, not merely a matching stretch of raw text, and reuse does not guarantee that the chosen interpretation matches a speaker's intention.
Worked example
The best derivation can lose to the best parse
Suppose a toy probabilistic parser finds two possible trees for the same input, T1 and T2. Assume the listed derivations are distinct, mutually exclusive derivational outcomes in the model and exhaust the possibilities for these two trees.
T1 has two derivations with probabilities 0.12 and 0.10. Its total probability is 0.22. T2 has one derivation with probability 0.18. The most probable individual derivation is therefore the one producing T2, because 0.18 exceeds both 0.12 and 0.10.
However, the most probable tree is T1, since 0.22 exceeds 0.18. If these are the only parses of this input, normalizing their masses gives P(T1 | input)=0.22/0.40=0.55 and P(T2 | input)=0.45.
The remaining probability mass in the overall generative model can belong to other input strings. These invented values illustrate aggregation; they are not estimates from a real treebank. Merely retaining the strongest derivation for each tree would answer a different optimization question.
Illustrative case study
A fictional language-tools team, Linden Language, investigates recurring phrasing in equipment-support requests. It creates a small annotated corpus and experiments with a DOP-style parser.
During error analysis, the team sees that several fragment combinations support one attachment, while a single stronger combination supports another. It checks that its reported “best parse” aggregates the derivations according to the intended model rather than simply choosing the best derivation.
The team also reserves a separate evaluation collection and removes repeated tickets shared with training. It reports performance on that held-out material and documents unsupported terminology. A familiar training sentence is useful for demonstrating fragment composition, but it is not evidence that the parser generalizes to new customer language.
Common misconceptions and mistakes
- DOP memorizes only complete sentences. Its defining mechanism includes recombining structural fragments.
- The most probable derivation always gives the most probable parse. Multiple derivations can contribute probability to one tree.
- More fragments automatically improve useful accuracy. Corpus quality, coverage, estimation and inference all affect results.
- A preferred parse is a verified interpretation. It is a model's structural prediction and can be wrong or incomplete.
Business use
DOP provides a useful conceptual foundation for understanding how language systems reuse structured experience. A specialist application may explore it when annotated examples and interpretable structural alternatives matter.
Evaluate corpus coverage, annotation consistency, unfamiliar vocabulary, computation and the exact ranking objective. Do not equate historical research results with performance on a new organization's documents. If an approximate method is used, distinguish approximation to the specified model from limitations of the model or its training corpus.
People also ask
Does DOP require annotated data?
Classical tree-based DOP relies on analyzed utterances. Other variants may use different representations or learning arrangements, so the model must be specified.
Is it the same as a probabilistic context-free grammar?
Not generally. DOP can use larger tree fragments and multiple derivations for a single parse, although relationships and computational conversions exist.
Can it parse a sentence never seen before?
Potentially, by recombining available fragments, provided the model has adequate coverage of its words and structures.
Check your understanding
Tree A has derivation probabilities 0.08 and 0.09; tree B has one derivation of 0.14. Under the stated sum-over-derivations model, which tree ranks higher?
Answer: A, with total 0.17, even though B has the strongest single derivation.
Related terms
- Treebank
- Parse tree
- Syntactic ambiguity
- Corpus
- tree substitution grammar
- probabilistic parsing
- derivation
Learn next
Draw one short sentence tree and identify a large fragment and several smaller fragments that can reconstruct it. Then repeat the probability comparison with three derivations and explain why counting derivations alone is insufficient without their probabilities.
More in Graphs and symbolic AI
- Dancing links - Dancing links is a technique for efficiently removing and restoring elements in linked data structures during backtracking.
- Data complexity - Data complexity measures the computational difficulty of a task as the data grows while the query, rule set or other specified logical description is held...
- Data compression - Data compression represents information using fewer bits than a chosen original representation, when the data and method permit it.
- Datalog - Datalog is a declarative logic-programming language for expressing facts and rules over relations.
- Davis-Putnam algorithm - The Davis - Putnam algorithm is a resolution-based procedure for deciding satisfiability of propositional formulas in conjunctive normal form.
- De-identification - De-identification is the process of reducing the association between data and the people or other subjects it describes.
Sources
Rens Bod, A Computational Model of Language Performance: Data Oriented Parsing: https://aclanthology.org/C92-3126/
Rens Bod and Remko Scha, Data-Oriented Language Processing: An Overview, explains tree fragments and summing derivation probabilities: https://arxiv.org/abs/cmp-lg/9611003
The numerical comparison and Linden Language case are original illustrations.
Previous: Data normalization Next: Data parallelism