---
title: "Learning Parse and Translation Decisions from Examples with"
description: "Learn how CONTEX used supervised examples and rich linguistic context to make parsing decisions and translate English sentences into German."
canonical: "https://research.elamur.ai/free/en/papers/hermjakob-1997-learning-parse-translation-decisions-examples/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/hermjakob-1997-learning-parse-translation-decisions-examples/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [1997](https://md.research.elamur.ai/free/en/papers/1997/) / Learning Parse and Translation Decisions from Examples with Rich Context

# Learning Parse and Translation Decisions from Examples with Rich Context

Paper · 1997 · Ulf Hermjakob and Raymond J. Mooney

**Authors:** [Ulf Hermjakob](https://md.research.elamur.ai/free/en/authors/ulf-hermjakob/) and [Raymond J. Mooney](https://md.research.elamur.ai/free/en/authors/raymond-j-mooney/) · **Year:** 1997 · **Venue:** 35th Annual Meeting of the Association for Computational Linguistics and 8th Conference of the European Chapter of the Association for Computational Linguistics · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**58** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2110607519|W2788084335|W2950140200|W3146137215|W6891786270|W6979280029|W7100054542) · [Cited by **22** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/hermjakob-1997-learning-parse-translation-decisions-examples/cited-by/) · [35th Annual Meeting of the Association for Computational Linguistics and 8th Conference of the European Chapter of the Association for Computational Linguistics](https://aclanthology.org/volumes/P97-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/P97-1062/)
- [PDF](https://aclanthology.org/P97-1062.pdf)
- [DOI 10.3115/976909.979679](https://doi.org/10.3115/976909.979679)
- [OpenAlex](https://openalex.org/W2110607519)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence can be made of familiar words and still be difficult to analyze. A word might have several grammatical uses, a phrase might attach to more than one part of a sentence, and the right choice can depend on what the surrounding words mean. The authors of this paper ask whether a system can learn to make those choices from a modest collection of examples if it has access to detailed linguistic information at each step. Their system, CONTEX, learns [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) as a sequence of decisions that build a sentence tree.

A supervisor teaches CONTEX by working through sentences with it. At each step, the supervisor supplies the next action or reviews a proposed action once the system has learned enough to make suggestions. Actions move material into a working stack, combine words and phrases, and record grammatical and semantic relationships. The system saves the accepted actions and reconstructs the state in which each was taken. It then learns which properties of that state help predict the next action. The properties can include a phrase’s grammatical category, a verb’s tense, or whether a possible argument fits a verb’s role. At test time, the parser follows a single sequence of actions. Its output describes both the structure of the sentence and the roles played by parts of it.

On a lexically restricted selection of Wall Street Journal sentences, CONTEX reached 89.8% labeled precision and 89.6% labeled recall in cross-validation with 256 training sentences per fold. These measures count matching phrases whose grammatical labels also agree with the reference. Comparisons within the experiment favored the authors’ combination of decision lists and trees, and the full set of 205 features produced the highest labeled recall among the feature settings tested. CONTEX also reported higher labeled precision and recall than the published figures for SPATTER and the bigram lexical-dependency parser. The systems were evaluated on different sentences and used different conventions for recording phrase structure, so the figures provide a comparison of reported performance under those conditions.

The authors also evaluated English-to-German [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) on 32 sentences. CONTEX received better average syntax and meaning grades than the commercial systems in the test. Giving CONTEX a correct source parse improved both grades, with a relatively modest change in this sample. The study shows how detailed supervision and access to linguistic knowledge can support parsing and translation with comparatively few training sentences. The vocabulary filter, the effort invested in the linguistic resources, and the evaluation conditions define the scope of that result.

## Deep dive: Learning Parse and Translation Decisions from Examples with Rich Context

Learn how CONTEX used supervised examples and rich linguistic context to make parsing decisions and translate English sentences into German. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### The choices that make sentence analysis difficult

To parse a sentence is to decide which words belong together and what relationships hold among the resulting groups. A reader may recognize a group of words as a noun phrase and understand that it is the object of a verb. For a parser, that conclusion depends on a chain of decisions. It must identify the relevant words, find where the phrase begins and ends, and determine what role it plays in the larger sentence. The parts of the chain depend on one another. An early choice about a word’s grammatical category can affect which phrases the system can recognize later. A candidate phrase may look plausible in isolation, while the verb or another constituent makes a different grouping more plausible.

The paper treats ambiguity at the word level and ambiguity in sentence structure as connected problems. Knowing that a word can have a particular grammatical use establishes a possibility. Deciding whether to use it in that way can require several kinds of evidence. A choice may depend on the forms that adjacent words can take, on the phrase structure already recognized, or on whether the meanings involved fit the roles of an event. An expression that denotes a time can help the system recognize a temporal modifier, for example. That evidence becomes available once the expression can be located within the partially analyzed sentence.

The authors want the result of parsing to be detailed enough for translation. Their sentence representation identifies phrases, heads, and relations such as subject and object. It can also describe who performs an action, what the action affects, and when it occurs. The distinction matters because grammatical and semantic labels answer different questions. Subject identifies a relation in the source sentence. Agent describes a participant in the event. A translation component can refer to either kind of information when looking for a corresponding expression in the target language.

#### What the authors take from earlier approaches

Writing a broad grammar by hand requires developers to anticipate the situations in which each rule will apply. A rule that works for a familiar construction may need additional conditions once it encounters a different use of the same words or a similar sequence with a different structure. The authors see an asymmetry in that work. A linguistically trained person can frequently decide how to analyze a particular sentence even when specifying a rule for every relevant case would be difficult. Interactive supervision starts from the decision that person can make. Learning then looks for conditions that recur across those decisions.

The paper also discusses statistical approaches that constrain the information used in a decision. Its example of a trigram approach illustrates the tradeoff. A short, fixed description of context helps keep counts usable. Adding many properties to every description can spread the observations across combinations with little support. The authors contend that demanding cases can still benefit from properties outside such a narrow context. Their proposal depends on the idea that a property may matter greatly in a particular situation and have little value elsewhere. The learner should be able to use a question about a special construction only in the branch of the decision process where the construction is relevant. [N-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/)

The shift–reduce method gives this proposal a setting in which every decision has a visible effect. A parser processes material in order, keeps a stack of words and phrases under construction, and applies a small operation at each step. A shift typically brings material into the stack. A reduction builds a larger unit from material already on it. The authors adopt this procedure partly because they want a supervisor to follow the analysis and intervene at a specific step. A supervisor looking at a partially built phrase can correct the operation that would attach it, while the intended analysis is still clear in the working state.

The paper traces its interactive approach to Simmons and Yu’s work on acquiring context-dependent grammars. It credits that work with the basic arrangement of a human guiding a parser through decisions. CONTEX extends what those decisions can express and what the learner can inspect when choosing among them. Whereas the earlier feature collection described in the paper was small and syntactic, CONTEX can ask about structure, word forms, meaning, and relationships encoded in its linguistic resources. The authors also make the learned decision procedure a central part of the system.

Magerman’s SPATTER provides a closer comparison for learning from action sequences. As the paper describes it, SPATTER learns with a decision tree from sequences derived from Wall Street Journal trees in the Penn Treebank. Magerman also argues for information beyond traditional short word sequences. CONTEX continues that emphasis and changes the training representation. Its features can reach into a partially built frame, and its actions can record semantic roles and grammatical details beyond those available in the authors’ account of the treebank. The paper therefore regards the treebank as insufficient for reconstructing its own supervised action logs. [The Penn Treebank](https://md.research.elamur.ai/free/en/papers/marcus-1993-building-large-annotated-corpus-english/)

The authors describe Collins’ bigram lexical-dependency approach as another way to make use of linguistic relationships. It uses a narrower kind of context than CONTEX in the paper’s account and requires little background knowledge. Both that approach and SPATTER were trained on 40,000 Wall Street Journal sentences. CONTEX sets out to learn from a smaller sentence collection by supplying human guidance at the action level and making more information available at each decision. The choice changes both the kind of preparation the system needs and what a training example contains.

#### Why context matters for a single path

A parser faces two related questions. It has to choose what to do at the current point, and it has to decide whether to keep other analyses available in case the first choice proves troublesome. CONTEX concentrates its effort on the current decision. It makes evidence from several levels of analysis available together and uses it to choose a single operation. The design aims to avoid spending computation on alternative paths by making better-informed decisions as the sentence is processed.

That aim explains why the timing of linguistic information matters. If word-category choices were completed in a separate pass, later phrase structure could arrive too late to inform some of them. In CONTEX, lexical alternatives, phrase construction, and semantic analysis are part of the same parsing process. A partly constructed phrase can therefore provide evidence for a decision about incoming material. An operation can also change which features become available at the next step. The system learns what to examine against this changing state, so remembering the current shape of the analysis is as important as remembering the words themselves.

### The method, step by step

#### From words to a working state

CONTEX starts by splitting the input into words and punctuation. A morphological analyzer consults the lexicon and produces primitive frames for the resulting units. A frame is a record that can describe a word or a phrase, and frames can contain other frames. At the start, the frames describe individual input items. During parsing, operations build larger records by organizing smaller ones into trees. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/)

The lexicon provides information about a word’s possible parts of speech and connects words to concepts. It also stores information such as irregular forms and, for German, grammatical gender. An input word can receive a primitive frame for each possible part of speech. Alternatives involving form within one grammatical category can be represented in the same frame. This distinction lets the system keep track of the ways a word might function as well as the possible forms associated with a particular function. [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/)

A frame has slots for the form that appears in the text, the lexical form, and grammatical and semantic categories. It can record restrictions involving number, person, and tense. If the frame contains smaller frames, it can indicate their grammatical and semantic roles in the larger unit. Some entries are useful only in special cases. A frame for a number word can store the number it denotes, for example. A feature can inspect such a slot when the current decision calls for it.

The parser divides its working state between an input list and a parse stack. The input list initially holds the results of morphological analysis. The stack starts empty. During processing, the stack can contain a mixture of individual words and phrase trees. The input list can also hold structured material since the action language permits movement back from the stack. A decision can take into account what is currently being built, what lies deeper in the stack, and what is waiting in the input.

How CONTEX learns and uses parse decisions The steps in order.

The supervised logging and learning steps prepare the parser. When it processes an unseen sentence on its own, the lexical frames supply the initial state and the learned decision structure supplies actions. Translation begins with the tree those actions leave behind. The method thus has two different uses of the same working state. During training it provides a place for a supervisor to make a choice. At test time it provides the context in which the system must make that choice.

#### What one operation can change

A shift moves a frame between the input list and the stack. A reduction constructs a larger frame out of one or more stack entries. The paper’s simplified reduction example takes the two frames at the top and creates a verb phrase. The lower of the two becomes its predicate, the element that serves as the head. The upper becomes its object and is given the semantic role of patient. One operation thereby records grouping, grammatical category, and the relationship of each child to the new phrase.

The full parse tree in the paper’s other example analyzes a sentence about John buying a computer science book that day. The sentence frame records a buying event with tense, person, and number information. The frame for John is the subject and agent. The book phrase is the object and theme, and the temporal adverb supplies the time. The object has internal structure as well. It contains a determiner, a modifier expressing newness, and a nominal group whose modifier describes the book’s subject. That structure illustrates why an action can create something a later action needs to inspect. A complex phrase can occupy one stack position and still expose the details of its construction.

Reduction is frequently applied near the top of the stack, and its arguments can also name frames beyond adjacent top entries. Other actions support changes to a structure that has already been built. An insertion operation can place a frame at a position inside an existing tree. A marking operation can assign a value to a slot. The action language also supports empty categories. The paper illustrates this with the understood subject of an infinitive where the subject of the surrounding clause supplies its interpretation. Such a category can take part in the analysis even though it has no overt word in that position.

The learner treats each complete action as a class. Choosing a particular reduction means choosing the grouping, the result category, and the roles specified by its arguments together. The parser’s action interpreter then carries out those instructions. This arrangement gives the learner a clear target for each example, even when executing that target involves several changes to the data structure. It also means that two reductions with different assignments can count as different actions even if they operate on the same span of words.

These operations give the authors a way to represent both a tree and the procedure that produced it. The tree shows what belongs together in the finished analysis. The action sequence shows what was available at each point, when an attachment was made, and which information was added along the way. Two sequences can reach the same final structure. CONTEX keeps the sequence because it is teaching the system to act on partial information and needs a desired action at each step.

#### How the system asks questions about context

A feature is a function that reads a parse state and returns a value. Some functions inspect a particular stack or input position directly. Others follow a path through a tree. For instance, a feature can begin at the top of the stack, find the frame assigned the object role, and return that frame’s broad grammatical class. In the paper’s illustration the answer is noun phrase. If the requested object is missing, the interpreter returns a special value meaning the feature is unavailable. The learner can therefore distinguish the presence of a usable grammatical category from a state in which the corresponding relation has yet to be built.

The feature language can refer to a position on either side of the boundary between input and stack. A question about an incoming frame can ask whether its adverbial alternative belongs to the class of adverbs that modify the degree of an adjective. A question about a stack frame can inspect its finite tense or ask whether an object has already been assigned. Another feature can compare two frames for subject–verb agreement. These questions differ in how much of the working state they need. They can all be interpreted as requests for a value at the current decision point.

The ability to follow connections within a frame gives context a structural meaning. A word involved in an earlier decision can be several levels down in a phrase that now occupies a single stack location. The system can reach that word by following roles inside the phrase. Conversely, words close together on the surface may play different roles or belong to separate constructions. A feature can use the positions of the frames, their internal relations, or both, depending on what information the decision needs.

CONTEX can also ask about a category at different levels of generality. A particular noun can have a concept associated with it and also belong to a broader class such as tangible object. A feature that uses the broader category can return the same result for words that have distinct lexical entries. The paper reports a knowledge base with 4,356 concepts and 4518 links indicating that one concept is a kind of another. The links form a directed graph without cycles, so a concept can be reached through levels of increasing generality without circular classification. Much of the graph is shallow. The authors give more detail to distinctions they expect to matter for decisions about time, space, and animate entities. [Knowledge representation and reasoning](https://md.research.elamur.ai/free/en/concepts/knowledge-representation/)

A separate subcategorization table describes the grammatical and semantic role patterns associated with verbs. Subcategorization concerns the kinds of participants and grammatical slots a verb can take. CONTEX can compare the current frames with an entry in this table to estimate which role a phrase fits. A candidate phrase could be considered for a role such as agent or time depending on its properties and the pattern being tested. The paper reports 242 table entries.

The knowledge base and the verb table enter the method through feature computation. If a feature asks whether a noun falls under a concept, the graph can supply that answer. If it asks how a frame fits with a verb, the table can supply a pattern to check. The decision structure can then use the resulting value alongside information already in the frame, such as tense or the grammatical category of a child. Editing a concept entry, adding a feature, and changing a logged action are therefore distinct changes to the system. They change, respectively, background information, the questions that can be asked, and the supervised answer.

#### How supervision becomes training data

The supervisor initially works through a training sentence by specifying operations. The system executes each one and displays the evolving analysis. The next decision is made in the context the previous operation created. An entire accepted sequence is saved when the analysis is complete. This is [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) at the level of parser actions. The supervisor supplies a way to reach the analysis as well as the linguistic information encoded in its result.

As examples accumulate, the authors can train a preliminary decision structure and use it during further annotation. It proposes an action for the current state. The supervisor can approve the proposal or supply a correction. In either case, the next state follows the accepted action. This creates a training trace in which each supervision decision is grounded in the intended analysis up to that point. The benefit to the supervisor depends on how frequently the proposed action is acceptable. Every correct proposal saves the effort of specifying the command again.

A log can be reused after the feature collection changes. The system starts the sentence again and executes the accepted actions in order. Before each action, it computes the feature values associated with the current state. The training example pairs those values with the action in the log. Repeating the process builds a collection of examples that can be used to train a new decision structure. The supervised decisions are preserved in the log. Values that depend on a revised feature definition can be computed automatically during replay.

Early feature development uses conflicts between these examples. Suppose two states call for different actions, and every current feature gives the same answer in both states. The examples are indistinguishable to a learner that sees only those answers. The supervisor can inspect the states, identify a linguistically relevant difference, and express it as an additional feature. Once the log is replayed, that feature can supply the distinction. This procedure directs manual work towards cases in which the current representation demonstrably cannot distinguish the recorded choices.

The study’s feature inventory contains 205 features. The questions can in principle reach frames at any depth and use more than one frame at a time. In practice, the authors choose questions they judge relevant to decisions in the current area of the sentence. Their training procedure combines that human selection with automatic selection of the questions worth asking in a particular decision. The human defines a feature’s meaning. The learner determines where the feature helps separate examples of different actions. [Machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/)

#### How the learner chooses an action

The learning procedure is based on ID3. In an ordinary decision tree of the kind discussed by the authors, training begins with a collection of labeled examples. The algorithm chooses a feature that helps distinguish their labels and divides the examples by the feature’s value. It then makes the same kind of choice within each resulting subset. A useful distinction in one subset can be irrelevant in another, so the branches can use different questions. In CONTEX, the labels being distinguished are parse actions.

This selective use of features is central to the authors’ answer to data fragmentation. If all possible feature values had to match before an example could inform a new decision, two otherwise similar states could be separated by many details of no consequence to the action. A tree asks questions along a path and can leave such details out of that path. A question about agreement can matter in a context where the parser is considering a subject relation. A question about the category of an existing object can matter elsewhere. Either can be useful without being asked on every example.

CONTEX extends the tree arrangement by using a decision list whose entries contain hierarchical trees. A decision list brings order to the alternatives considered. The hierarchy gives the learner a way to separate broad decisions about groups of actions from more specific choices within a group. In the paper’s illustration, a reduction tree first decides whether reduction is appropriate. If the answer calls for a reduction, the system then chooses a particular one. Examples of different reductions can thus provide evidence for the broader question about reduction before being distinguished by their detailed arguments.

The grouping reflects what the designers know about similarities among operations and about which cases are exceptional or general. The learner still selects discriminating features from examples within the resulting structure. Giving it groups of actions can help retain evidence that would be spread across several classes if the detailed operations were handled together from the outset. The arrangement combines an authored organization of the decision with learned tests of the current state.

When CONTEX parses independently, it consults the learned structure, obtains an action, and executes it. That changes the stack, the input list, or the information in a frame. The next decision uses the new state. The term deterministic refers to this single path through the actions. It does not prevent a lexical frame from representing ambiguity or a feature from referring to a word’s alternative category. Those possibilities supply information at decision time. The parser commits to the action chosen for the current state.

#### How the parse becomes a translation

Once the source sentence has been analyzed, the transfer component maps its tree into a target-language tree. The mapping proceeds recursively through the structure. A bilingual dictionary can supply a correspondence for a word, a phrase, or a longer expression. When several target choices are possible, the transfer component can use contextual decisions learned with methods adapted from parsing. The paper illustrates the need for such a choice with English *know*, which can correspond to German *wissen* or *kennen*.

Dictionary entries for larger expressions can specify material in grammatical roles. The paper’s example involves commenting on something and a German expression whose corresponding slot calls for a dative form. CONTEX preprocesses complex dictionary entries with the parser. That yields source and target patterns expressed as trees, so the transfer component can look for a match against the structured source analysis. A matched tree can convey a correspondence across different grammatical arrangements in the two languages.

A phrase entry can also resolve ambiguity where the two languages have compatible structures. The paper’s example is *interest rate*, which maps to *Zinssatz*. Taken separately, the English nouns permit several readings and German equivalents. The compound provides a stronger clue to the intended choice. The authors consider such entries important to translation quality and point to statistical discovery of bilingual collocations as a possible partial aid to collecting them. [Translating Collocations for Bilingual Lexicons](https://md.research.elamur.ai/free/en/papers/smadja-1996-translating-collocations-bilingual-lexicons-statistical/)

Transfer supplies the target structure. Generation arranges its components, adds punctuation, and passes the information needed to produce the appropriate word forms. This last step is where a requirement such as case or agreement can affect the surface words. The separation also makes it possible to test what happens when the translation components receive a correct source tree. The transfer and generation procedures can be used with that tree while bypassing the parser’s predictions.

### Experiments and results

#### What the parsing experiment tested

The authors use Wall Street Journal text from the ACL-CD. They first restrict the corpus to sentences whose vocabulary is covered by the 3000 most frequent words in the full collection, with items such as numbers handled outside that restriction. This leaves 105,356 sentences. The filter serves a practical purpose because the system needs lexical information for its input. It also defines which sentences the reported experiment represents. The data are newspaper sentences selected for coverage by a particular vocabulary. [English](https://md.research.elamur.ai/free/en/topics/english/)

The supervised set consists of the first 272 sentences used in the experiment. These sentences have between 4 and 45 words, with an average length of 17.1 words. They require an average of 43.5 parse actions per sentence. The action average helps explain why the sentence count and the amount of supervision describe different aspects of the experiment. A sentence contributes decisions about lexical material, intermediate phrases, and the larger construction. Its final tree is the product of those Decisions in order.

The authors divide the logged sentences into 17 blocks of 16 sentences. In 17-fold cross-validation, each block serves in turn as the test set. For a particular training condition, they learn from the prescribed number of sentences outside that test block and average the results across the folds. The largest condition uses 256 training sentences per fold. This procedure holds the test sentences apart from the action examples used to fit the decision structure within each fold. The development of the feature inventory is a separate part of the setup, with its own implications for how broadly to interpret the scores.

#### How to read the parsing metrics

The main structural metrics compare constituents, which are groups in the analysis that cover portions of the sentence. Three aspects of a constituent can matter in this study. Its boundaries say what words it includes. Its grammatical label says what kind of constituent it is. Its position in the full result can contribute to a measure of whether the entire sentence was analyzed correctly. Precision and recall summarize constituent matches while using different denominators. [Evaluation & benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

```
precision = C ÷ S
```

The word `precision` denotes the fraction of the system’s proposed constituents that match the reference. `C` is the count of matching constituents in the system parse. `S` is the total constituent count in that parse. The equals sign defines the measure, and `÷` divides the match count by the system’s count. This denominator makes precision sensitive to extra constituents proposed by the parser.

```
recall = C ÷ R
```

The word `recall` denotes the fraction of the reference constituents recovered by the system. `C` again counts matches, and `R` counts constituents in the logged reference parse. The equals sign defines the measure, and `÷` divides the match count by the reference count. This denominator makes recall sensitive to reference constituents that the parser leaves out.

For the labeled forms of these measures, a constituent counts as correct only when the syntactic category also matches. An analysis can recover the boundaries of a phrase and still assign the wrong grammatical category. Its match then contributes under the structural criterion alone. The paper gives both labeled and unlabeled figures so that these outcomes can be distinguished.

Crossing brackets measure a particular kind of boundary disagreement. A system phrase crosses a reference phrase if their spans overlap with a boundary conflict. For example, a proposed phrase can begin within a reference phrase and run past its end. The paper reports crossings per sentence and percentages of sentences meeting crossing thresholds. A sentence may have no crossings and still omit a reference phrase or give a phrase the wrong label. Exact structure and labeling is more demanding because it requires agreement across the complete sentence.

Part-of-speech accuracy concerns the final grammatical tags of words. The operation measures instead concern the process of constructing the analysis. For the correct-operations metric, the system predicts an action while parsing is continuously corrected against the recorded sequence. The resulting score estimates the share of decisions a supervisor could approve in that setting. It is measured with earlier mistakes corrected before they can change the next state. It is therefore a direct measure of how frequently the proposed next action is right under supervision.

Exact operation-sequence accuracy asks whether the system can predict the full sequence for a sentence. A sentence counts only if its predicted sequence matches the log throughout. Exact structure and labeling, called Str&L in the paper’s tables, checks the finished syntactic result. A sequence that differs from the recorded one can still yield an acceptable finished tree under that criterion. Reading these measures together shows why local action accuracy, reproduction of an annotation procedure, and agreement in the final parse provide different accounts of performance.

#### Parsing accuracy on held-out sentences

With 256 training sentences, 205 features, and the hybrid decision structure, CONTEX reached 92.7% unlabeled precision and 92.8% unlabeled recall. Requiring the constituent labels to agree yields 89.8% labeled precision and 89.6% labeled recall. The figures report performance across the held-out Wall Street Journal folds under the authors’ bracketing and annotation scheme. Part-of-speech accuracy for the same setting was 98.4%.

The hybrid system gave 56.3% of the test sentences parses with zero crossing brackets. The figure for the threshold of two crossings used in the published comparison was 84.9%. Exact syntactic structure and labeling was achieved for 26.8% of sentences. These measures demand different degrees of agreement. A sentence with no crossing spans may still have one or more omissions or label errors. Exact agreement can fail even when most constituents in the sentence are correct.

For the supervised next-action measure, the hybrid setting achieved 91.7% correct operations on held-out sentences. Exact operation-sequence accuracy was 16.5%. A sentence provides many opportunities to depart from the log, and an action can alter the frames on which later predictions depend. The action ratio estimates how frequently supervision can accept an individual suggestion along the corrected path. The sequence percentage captures how frequently the complete recorded procedure can be reproduced.

The paper varies the number of training sentences while keeping the full feature inventory and hybrid organization. Its labeled-precision curve rises over the training range shown, and the authors say that it has yet to flatten at the largest setting. They also report that unfamiliar constructions account for many errors. A wrong decision on such a construction can lead to several subsequent errors. The two observations are consistent with the authors’ expectation that more examples would help with coverage. The observed result is the rise within the reported training range.

#### Comparisons with published parsing systems

The paper places the best CONTEX setting alongside SPATTER and the bigram lexical-dependency parser, abbreviated BLD. The comparison reports results for sentences no longer than 40 words from two earlier systems that both use the Penn Treebank’s Wall Street Journal material. The figures compare published evaluations of related systems with different data selection and annotation conditions.

Reported labeled precision on Wall Street Journal parsing evaluations CONTEX has the highest reported labeled precision across the evaluations.

**The numbers**

| System or setting | labeled precision % |
| --- | --- |
| SPATTER | 84.9 |
| BLD | 86.3 |
| CONTEX (this paper) | 89.8 |

Labeled recall follows the same ordering in the comparison. SPATTER reports 84.6%, BLD reports 85.8%, and CONTEX reports 89.6%. The crossing-bracket results show a less uniform ordering. The reported averages per sentence are 1.26 for SPATTER, 1.14 for BLD, and 1.02 for CONTEX. On the percentage of sentences with zero crossings, BLD leads with 59.9%, followed by SPATTER at 56.6% and CONTEX at 56.3%. The metric about crossings across sentences and the metric about a completely crossing-free sentence give different views of the reported parses.

The sample differences matter to that comparison. The authors give 22.3 words as the average sentence length in the SPATTER and BLD results, compared with 17.1 for CONTEX. They connect CONTEX’s lower average to the lexical filter. They also note that some CONTEX test sentences exceed 40 words. Bracketing differs as well. Some groups, such as names made of several words, can be left without internal structure in the Penn Treebank. CONTEX analyzes the inside of such phrases, creating more boundaries at which a disagreement can occur. Each difference affects how straightforwardly the scores can be compared.

#### English-to-German translation

The translation evaluation uses 32 randomly selected sentences from the restricted Wall Street Journal corpus. It compares full CONTEX, CONTEX supplied with a correct source parse, and the commercial systems Logos, SYSTR.AN, and Globalink. The correct-parse condition keeps the transfer and generation components and changes the quality of the tree with which they start. Those components had been developed and trained using 48 sentences.

Ten bilingual graduate students evaluated translations presented in random order with the producing system hidden. The group included native speakers of German living in the United States and native speakers of English who taught German at college level. Half of the evaluators also received translations from a bilingual human as a control. They scored syntax and semantics separately. In this evaluation, a smaller grade is better, with **1.00** as the best possible and **6.00** as the worst possible. Syntax concerns the grammatical quality of the output, while semantics concerns its meaning.

Semantic translation grades on the English-to-German Wall Street Journal sample Full CONTEX receives a better average meaning grade than the commercial systems, and a correct source parse improves its grade.

**The numbers**

| System or setting | semantic grade |
| --- | --- |
| Globalink | 3.83 |
| SYSTR.AN | 3.35 |
| Logos | 3.24 |
| CONTEX, full translation (this paper) | 2.38 |
| CONTEX, correct parse | 2.19 |
| Human translation control | 1.41 |

On syntax, the human control received 1.18. CONTEX with the correct parse received 2.20, and full CONTEX received 2.36. The commercial systems received 2.57 for Logos, 2.68 for SYSTR.AN, and 3.30 for Globalink. The ranking on grammar broadly accords with the ranking on meaning in this test. The correct source parse moves CONTEX’s grade in the favorable direction on both scales. The paper interprets the size of that change as evidence that parser errors had a relatively moderate impact on the assessed output in this sample.

The commercial comparison is an evaluation of the resulting translations on the selected sentences. CONTEX was developed using material from the lexically restricted corpus, with the training and test sentences kept apart. The commercial systems were developed for a broader range of texts. That difference matters particularly for word choice. The grades establish how the systems fared in this assessment, under the stated sampling and scoring conditions.

### What the ablations show

#### The contribution of the feature inventory

The authors test feature subsets while holding the training size at 256 sentences. Each condition uses a collection of core features of the indicated size. The smaller inventories provide a test of what the learner can do with broadly useful distinctions. The larger inventories let it ask more specialized questions. Labeled recall increases across the feature settings reported in the table.

Feature subsets and labeled recall on the Wall Street Journal parsing folds The full feature inventory recovers the highest share of reference constituents with matching syntactic labels.

**The numbers**

| System or setting | labeled recall % |
| --- | --- |
| 6 features | 81.6 |
| 25 features | 84.1 |
| 50 features | 86.9 |
| 100 features | 88.1 |
| 205 features (this paper) | 89.6 |

The conditions using 25 features or fewer have only syntactic features. The authors use the 25-feature condition as an indication of the value of adding semantic knowledge. Its labeled precision is 86.7%, and tagging accuracy is 97.9% in that condition. The full inventory reaches 89.8% labeled precision and 98.4% tagging accuracy. The changes are more visible in some measurements than others. The paper emphasizes complete sentence structure because specialized decisions can be consequential to an entire tree even when they are infrequent in the total collection of constituent and tagging decisions.

The feature-subset experiment changes the size and contents of the inventory together. A comparison with the syntax-only subset shows what happens when the learner gains access to a larger collection that includes semantic information. It does not identify the contribution of every question added along the way. A question about a rare construction may help only in particular states. A question about a broad grammatical class may be useful across many states. The learner can use both while assigning them very different places in the decision structure.

The authors also examine the fit to training data. With 205 features, states that needed different actions could be distinguished across the observed training examples. The paper reports 100% accuracy on sentences the system had already seen. This is a check on whether the chosen representation can express the distinctions present in the action logs. The held-out evaluations address the further question of whether the tests learned from those distinctions lead to good decisions in sentences outside the training fold.

#### Removing access to the verb table

A more specific intervention removes all 10 features associated with the subcategorization table. The authors report that the measures that deteriorated concerned semantic role assignment. They report no significant changes in precision, recall, or crossing brackets. The other semantic features remain available. Under these conditions the verb table makes a clearer contribution to the recorded roles of constituents than to the structural metrics.

The result makes sense in terms of the difference between finding a phrase and deciding what part it plays in an event. The system can identify the words of a noun phrase and attach it successfully even when it assigns that phrase the wrong semantic role. Span-based metrics and syntactic labels can still credit that analysis. A role measure can register the mistake. Retaining the same boundary score while losing role accuracy therefore points to a specific kind of information supplied by the table.

The test also narrows the interpretation of the larger feature-subset experiment. The full inventory benefits from access to many questions, and the removal test shows that one group of those questions has its clearest measured effect on semantic assignment. The paper’s structural results therefore offer limited support for crediting the verb table alone for resolving attachments. Its effect on the role information passed to transfer is a different question from its effect on bracketing.

#### Changing the organization of the decisions

A separate experiment holds the training size at 256 sentences and the inventory at 205 features, then varies the structure used to choose actions. It tests a plain decision list, a hierarchical list, a plain decision tree, and the hybrid list of hierarchical trees. This comparison targets the organization of the learner while keeping the training material and available questions the same.

For unlabeled precision, the plain list reports 87.8%, the hierarchical list 91.0%, the plain tree 87.6%, and the hybrid 92.7%. The corresponding unlabeled recall results are 89.9%, 88.2%, 89.7%, and 92.8%. The hierarchical list does well on precision relative to the plain list but recovers a smaller share of the reference constituents. The hybrid has the highest reported values on both measures in this comparison.

The exact structure and labeling scores are 22.4% for the plain list, 22.8% for the hierarchical list, 21.7% for the plain tree, and 26.8% for the hybrid. The counts of endless loops are 26, 23, 32, and 1, respectively. The latter measure draws attention to an aspect of a deterministic parser that ordinary constituent accuracy can obscure. The action policy must produce a sequence that reaches a finished state. Repeated choices that keep revisiting an unproductive configuration can prevent that outcome even though many individual states elsewhere are handled correctly.

The authors use the hybrid’s results to argue that organizing related actions together can improve the learned decision procedure. A shared decision about whether to reduce can draw on examples whose eventual reductions differ. More detailed questions can then select the operation once that broader choice is made. The comparison supports the particular hybrid as a package. The alternatives differ in how they organize several parts of the process, so the results leave room for different contributions from ordering and hierarchy.

#### Changing the tree supplied to translation

Supplying a correct parse is a controlled comparison on the translation side. The same transfer and generation components are used for the same 32 sentences. Full CONTEX has to produce its own source tree, while the alternative starts from the reference analysis. The improved syntax and semantics grades in the correct-parse condition show that source analysis matters to the final result. The remaining gap to the human control also shows how much of the evaluated quality depends on what happens after the source tree is available.

The paper also compares sentence-level parse and translation measures by correlation. Labeled precision has the strongest correlation among the listed parsing measures with both kinds of translation grade. The reported coefficients are -0.75 for syntax and -0.78 for semantics. A negative sign here associates a higher parse score with a lower, more favorable translation grade. Crossing brackets have positive coefficients of 0.58 for syntax and 0.54 for semantics, consistent with worse translation grades as the count of crossing boundaries rises.

The correct-parse comparison and the correlations illuminate different aspects of the connection. Replacing the tree changes the input to the translation components and shows what happens to the produced translations. A correlation describes how scores move together over the evaluated sentences. In this sample, labeled constituent precision tracks the translation assessments more closely than correctness of the action sequence does. That difference is consistent with the design of transfer, which uses the resulting tree and its information about phrases. Correlation does not establish which constituent mistakes led to which choices in the German output.

### Limitations

#### Limits the authors identify

The authors emphasize that CONTEX was evaluated on a subset of the Wall Street Journal that met its vocabulary restriction. The filter reduces the lexical resources needed for the prototype, and it also changes the distribution of sentences being analyzed. Their parsing comparison with SPATTER and BLD uses different sentences, different average lengths, and different bracketing conventions. They present the comparison as a way to put CONTEX’s performance in context. The source of any advantage across those evaluations cannot be isolated from those differences.

They place a similar qualification on the translation comparison. CONTEX’s training and test material comes from the same restricted corpus, with no overlap in sentences. The commercial systems were developed to handle a larger variety of domains. A system that draws on information prepared for the vocabulary and constructions of the evaluation corpus has a different lexical task from one deployed across many types of writing. The commercial scores are consequently specific to this assessment.

The authors also describe the system as a prototype with limited training. In parsing, they identify previously unseen constructions as a source of consecutive errors. The upward learning curve leads them to expect improvement from additional training sentences. In translation, the limited development set for transfer and generation motivates a similar expectation. Both expectations concern work beyond the evaluated conditions. The paper does not measure the eventual quality of an expanded system.

Knowledge acquisition remains part of that development. The authors expect the feature inventory to grow to about 300 when expanding within the Wall Street Journal domain, potentially with further growth in another domain. They say that adding features can require little supervisor effort when a conflict supplies a concrete problem to solve. They also describe tools that let a developer enter related lexical and concept information together. Those observations describe parts of the workflow. They leave overall development costs dependent on the linguistic resources and coverage required for a new setting.

#### Limits that follow from the setup

The sentence count measures one input to learning. It gives a partial account of the effort that made the results possible. The supervisor provides actions, the feature author encodes potentially relevant distinctions, and the lexicon and concept resources supply information used during parsing. Even within a sentence, supervision concerns a sequence of actions. Comparing the sentence counts with work trained from existing treebank annotations therefore compares different forms and amounts of information per example. The experiment does not include a common accounting of the labor for all these forms of preparation.

The folds separate held-out sentences from the logged actions used to train each resulting decision structure. The paper also describes early feature development through conflicts observed in supervised examples. It does not specify a separate process for rebuilding that inventory independently within every fold. The published protocol establishes held-out evaluation for fitting the action chooser with the stated feature collection. The extent to which the collection itself reflects inspection of material in the overall experiment is left open.

Single-path parsing creates a distinction between making decisions with human guidance and proceeding through a sentence independently. In the supervised operations metric, each prediction is evaluated after earlier actions have been corrected. An independent parser may have to classify a state produced by a mistaken action, with a phrase absent or labeled differently from its counterpart in the log. This helps explain why it is important to examine finished structures and looping behavior alongside the operations measure. Each describes a different consequence of the same parsing policy.

The structural metrics also give a partial evaluation of the tree the authors aim to produce. A syntactically labeled constituent can match while a semantic role within it is wrong. The subcategorization removal makes that distinction visible. The translation ratings provide evidence about the usefulness of the overall result for English-to-German transfer on a specific sample. The paper offers less direct evidence about the completeness of the semantic analysis across sentences or its suitability for tasks with different requirements.

The human translation evaluation reduces some immediate sources of bias by hiding system identities and randomizing order. Its averages still come from a small set of sentences and a particular group of raters. The human control is also distributed to half of the evaluators. The paper supplies average syntax and meaning grades and the correlations with parsing scores. It gives no uncertainty estimates for the comparative grades. The numerical rankings describe the sample, with the stability of close rankings under a new draw of sentences or evaluators left unmeasured.

Finally, the correct-parse test measures how much the reported translation scores change when transfer starts from a reference tree. A small average change can accompany substantial effects on some sentences and little effect on others. The averages do not give that distribution or identify which kinds of parse errors matter most. An error involving a phrase with no effect on the chosen German expression may have a different consequence from an error that changes the verb or an argument role. The paper leaves the detailed relationship between individual parse errors and translation failures open.

### What came after

#### Parsing decisions and feature selection

The later citing works cover parsing, answer detection, and event interpretation. Their connections to CONTEX can be described at the level of the problems their titles identify. The citations establish that the work was cited in those settings. They do not establish reuse of its feature language, supervised action logs, or hybrid decision procedure.

Collins’ 2003 work on head-driven statistical parsing places grammatical heads at the center of its stated approach to sentence analysis. A head is the element that characterizes a phrase and can serve as the point through which it is related to other elements. CONTEX also represents a predicate or head in a structured phrase and lets features inspect parts of that structure. There is a direct connection to the earlier research context in the paper. The authors already compare CONTEX with Collins’ 1996 approach based on bigram lexical dependencies. The later citation sits within the continuing study of what structural and lexical information should guide a parser’s decisions. The citation alone leaves the particular use of CONTEX in that work unspecified. [Head-Driven Statistical Parsing](https://md.research.elamur.ai/free/en/papers/collins-2003-head-driven-statistical-models-natural/)

The 2002 paper on feature selection for a rich HPSG grammar identifies a more specific shared concern. It studies the use of decision trees to select features in a detailed grammar. In CONTEX, detailed linguistic representations make numerous questions possible, and the tree selects among those questions in subsets of the training examples. The later title similarly pairs the richness of the available linguistic description with a tree-based method for selecting what to use. Its stated setting is a rich HPSG grammar. The citation does not identify which choices about feature representation or tree construction it may have taken from CONTEX. [Feature Selection for a Rich HPSG Grammar](https://md.research.elamur.ai/free/en/papers/toutanova-2002-feature-selection-rich-hpsg-grammar/)

#### Semantic information in other tasks

The 2001 work on semantics-based answer pinpointing applies semantic information to a task framed around locating answers. A useful point of comparison is the role of intermediary linguistic structure. CONTEX builds a representation that identifies phrases and participants so that a later component can make its own selection. The answer-pinpointing work has a different stated output, the location of an answer. Its citation connects the paper to a setting in which decisions about meaning matter beyond the construction of a sentence tree. The stated scope provides no basis for saying that the answer-finding procedure uses CONTEX’s parser or its decision hierarchy. [Semantics-Based Answer Pinpointing](https://md.research.elamur.ai/free/en/papers/hovy-2001-semantics-based-answer-pinpointing/)

The 2011 work on annotating and learning event durations concerns how long events described in text last. Time is among the areas for which CONTEX’s authors provide a relatively detailed set of concepts. Their illustrative parse can mark a word as indicating when an event takes place. Duration asks for another temporal property, the time over which the event extends. The later work’s stated focus on annotating and learning duration gives it a distinct supervision target. CONTEX’s logs teach a parser which operation to perform, with some operations or features recording temporal information. The later citation places that paper in the background of research on learning explicit temporal information from text. It does not specify a transfer of annotations, temporal categories, or algorithms between the systems. [Annotating and Learning Event Durations](https://md.research.elamur.ai/free/en/papers/pan-2011-annotating-learning-event-durations-text/)

The parsing and grammar papers name two choices that CONTEX treats explicitly, which structural relations to represent and which features to consult at a decision. The answer and duration papers identify downstream questions for which the meaning of a sentence matters in different ways. CONTEX’s demonstrated downstream use was English-to-German translation, where the authors could change the source tree and examine the resulting output. The later citations show that its treatment of learned decisions and linguistic context was relevant to a wider set of research questions, while leaving the extent of direct methodological adoption open.

## Cite

Cite as Ulf Hermjakob and Raymond J. Mooney. 1997. Learning Parse and Translation Decisions from Examples with Rich Context. 35th Annual Meeting of the Association for Computational Linguistics and 8th Conference of the European Chapter of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.3115/976909.979679](https://doi.org/10.3115/976909.979679)

```bibtex
@inproceedings{hermjakob1997learning,
  title = {{Learning Parse and Translation Decisions from Examples with Rich Context}},
  author = {Ulf Hermjakob and Raymond J. Mooney},
  booktitle = {35th Annual Meeting of the Association for Computational Linguistics and 8th Conference of the European Chapter of the Association for Computational Linguistics},
  year = {1997},
  doi = {10.3115/976909.979679},
  url = {https://doi.org/10.3115/976909.979679}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
