Combining Deep and Shallow Approaches in Parsing German
Paper · 2003 · Michael Schiehlen
Summary
A German sentence can leave several grammatical analyses open even when its words are familiar and its phrases are easy to recognize. A noun before the verb may be a subject or an object. A prepositional phrase after a noun may describe that noun or modify the larger clause. A hand-written grammar can identify these alternatives and check whether they fit the sentence. Choosing among them takes another kind of evidence. Michael Schiehlen’s study asks how much a German parser gains by keeping plausible alternatives available and letting a second parser help choose among them. Both parsers express their results as links between words, the representation used in dependency parsing.
The hand-written system builds an analysis in stages, beginning with noun groups and clauses. It uses inflection to check agreement and case, then examines which grammatical roles the main verb permits. Where the grammar leaves a choice open, the system can record several possible links. It also records which choices have to agree with one another, so a later stage can distinguish a coherent reading from a mixture of incompatible decisions. The trained parser works from a smaller view of the sentence. It uses nearby word-category tags to predict each word’s role and to describe where its governing word is likely to be.
The experiments use the NEGRA collection of annotated German newspaper sentences. Schiehlen compares several ways of combining the parsers, including simple and weighted voting. The strongest tested strategy learns an ordered list of decisions from training examples. With automatically assigned word categories, the grammar’s fixed preferences give an F-score of .8073. The hybrid that uses the grammar’s unresolved alternatives and conditions its choices on word category reaches .8563. With the word categories taken from the treebank, the corresponding fixed-preference grammar and hybrid score .8471 and .8849. F-score combines the share of proposed links that are correct with the share of reference links that the parser finds.
The evaluation also asks how well the grammar could do if its ambiguities were resolved ideally. The grammar alone reaches .8816 under that condition with treebank tags. Once the grammar already has that advantage, adding the trained parser offers a smaller benefit. The results by grammatical role help explain the pattern. The local predictions recover many short relations, while the grammar has an advantage on verb arguments and parts of the verb complex. The largest practical gain comes from using those different strengths when the grammar’s choices are still open and the input word categories can contain errors.
Deep dive: Combining Deep and Shallow Approaches in Parsing German
A study of German parsing that combines hand-written grammar with a trained parser to resolve ambiguities and recover more grammatical relations. · about 33 minutes to read
The problem and its context
What a parser should get credit for
A parser makes decisions at several scales. It may group a determiner and noun into a phrase, decide that the phrase is an object, and connect it to the verb that governs it. A sentence-level exact match collapses all of that work into a single outcome. If the parser takes a modifier to belong to the wrong noun, it can lose credit for a sentence in which it otherwise identifies the verb, the arguments, and the internal organization of the phrases. Schiehlen begins with the question of what part of the output deserves credit on its own. The choice matters both for measuring parsing and for combining systems that arrive at their answers in different ways.
The paper discusses PARSEVAL as a way to give partial credit at the level of constituent trees. A constituent is a group of words represented as a unit in the analysis. Precision and recall can count which units a parser has in common with a reference tree. A crossing-bracket measure focuses on a narrower disagreement: a proposed span crosses the boundary of another span in the reference. These measures give a finer view than a whole-sentence score. The paper points out that the number of nodes assigned to a construction depends on the grammar. Two analyses can describe a similar grammatical relationship with different amounts of internal structure, giving the relationship different weight in an evaluation based on nodes. A decision made early in a phrase analysis can also affect several nodes at once.
Schiehlen uses labeled word-to-word relations as the common unit. A relation identifies a dependent, its governing word or head, and a grammatical role such as subject. For example, an analysis can give the parser credit for attaching a noun to its verb as an object even if the parser errs elsewhere in the clause. This is the sense in which a dependency score can separate decisions. It does not imply that the choices a parser makes are statistically independent. In fact, a central part of the paper concerns choices that have to be resolved together.
The paper connects this representation to earlier work on dependency-based evaluation. It also explains how to derive labeled dependencies from phrase structure. A phrase rule designates one constituent as the head. For each of the other constituents, the rule gives the grammatical role that connects its head word to the head word of the whole phrase. The conversion supplies a shared output for a parser that builds constituent structures and a parser that predicts the grammatical links directly. The annotated German corpus behind the experiments is described in An Annotation Scheme for Free Word Order Languages.
Word tokens provide an observable basis for comparing analyses. Predicate–argument structure also expresses connections that matter to interpretation, such as who does something and what it affects, but the paper notes that a predicate and its realization in the sentence do not always line up neatly. A German verb complex can contain several words while supplying a single place to attach the clause’s arguments for evaluation. Earlier work discussed in the paper dealt with such cases by designating one part of the complex as the attachment site. That convention gives different parsers a common answer to a representational question. Some distinctions about the scope of a modal verb may still require evidence beyond syntax.
Ellipsis creates the reverse problem: a predicate needed for the interpretation can be absent from the sentence. In the paper’s example involving John, Harry, tea, and coffee, the second part lacks an overt verb corresponding to the one in the first part. A scheme whose nodes are word tokens has to decide how to represent the remaining words. The paper describes proposals that promote one or more dependents to head status. It also discusses the possibility of evaluating predicate–argument structures directly. That would accommodate missing predicates more naturally, at the cost of requiring stronger agreement across grammatical frameworks about the structures being compared.
Why German leaves choices open
The paper uses German word order to show why recognizing phrases is only part of the work. The linear positions of the noun phrases can be compatible with different assignments of subject and object. Which roles remain possible can depend on inflection and on what kinds of arguments the verb takes. A grammar can check those constraints. When both readings satisfy them, the role assignment remains an ambiguity instead of a failure to recognize the words or phrases.
Attachment presents a related problem. A prepositional phrase can be easy to identify internally even when its contribution to the sentence is uncertain. In the paper’s English illustration, someone sees a man, and the description includes a car and a hill. The phrase about the car may describe the man or attach to the seeing event. The phrase about the hill introduces a further choice. What it can attach to depends in part on how the phrase about the car was connected. The illustration isolates a problem that the German parser has to handle: the analysis of a phrase can be secure while its position in the larger structure remains unresolved.
The study brings together two approaches with different sources of evidence. The shallow parser learns regularities from annotated examples and consults a short window of tags at each word. The hand-written parser brings in grammatical descriptions and lexical information. Schiehlen uses deep in this relative sense and acknowledges that finite-state parsing itself is not universally regarded as deep parsing. The practical distinction is between a system that learns from examples of the target links and one that derives its candidates through a written grammar, successive structural analyses, and checks on inflected forms.
What earlier approaches supplied
The finite-state architecture follows the broad organization of Abney’s chunk parser. It identifies smaller groupings and then works with those groupings in later passes. Schiehlen’s parser extends this organization to full clauses and uses additional checks for German noun phrases and verb complexes. Work on chart parsing supplies a separate precedent for retaining several analyses in a shared representation. The paper asks how the cascade can retain certain ambiguities in a form that a second parser can use.
Previous dependency work offered several ways to choose and encode heads. In the literature the paper reviews, a prepositional phrase can be headed by the preposition or by the noun inside it. Another proposal represents the relation with a combination of the governing verb, preposition, and noun. These choices change what counts as a correct answer and the number and kinds of answers a learner has to distinguish. Schiehlen also draws on Lin’s proposal to identify a head by its word type, its direction from the dependent, and its occurrence among words of that type. The paper adapts this idea to word categories. It treats recovery of a head alone as a possible simplification of the task, with earlier work on unlabeled evaluation including Eisner’s study of probabilistic dependency parsing.
For underspecification, the paper discusses a cascaded parser by Elworthy and colleagues that allows a modifier to retain several potential heads. That approach provides the alternatives that a later stage would need. A further step is needed when selecting one head changes which alternatives elsewhere can still be selected. Schiehlen uses context variables, drawing on earlier work by Maxwell and Kaplan and by Dörre, to express this dependence. Earlier evaluation of Lexical-Functional Grammar also provided a distinction between the performance available under an ideal choice and the performance expected under an average choice. The paper adopts that distinction from Riezler and colleagues’ Wall Street Journal parsing study.
The method, step by step
Agreeing on the output
The two parsers start from words with part-of-speech tags. A tag describes a word’s category in context, supplying information such as whether it is a noun or a verb. The paper runs experiments with tags taken from the reference annotation and with tags produced automatically. The distinction matters because a mistaken category can change what the learner sees in its context and how a head description is decoded. It can also change the phrase structures that the grammar proposes. Assigning these categories to words is the task of part-of-speech tagging.
The parsers meet at the level of dependency tuples. Each tuple specifies the dependent word, the head word, and the grammatical role connecting them. The learner can also mark a word as independent. In the general representation discussed in the paper, words are nodes in a directed graph and a word can have more than one governing connection. For the classification task, Schiehlen restricts the answer for each token to at most one head and role. This makes it possible to give a token a single class describing its incoming dependency. The restriction raises a linguistic question: which relations should the class encode when the ordinary interpretation involves several heads?
Coordination is the clearest example. A phrase such as fans and supporters contains two coordinated nouns. A determiner or a following modifier can apply to the coordination as a whole, while a similar string can also be understood as two noun phrases with their own modifiers. If the representation attaches every shared modifier to the same conjunct by default, some of the readings collapse into the same set of links. Schiehlen splits the convention by direction. A modifier before the coordination attaches to the last conjunct when its scope covers the coordination. A shared modifier after it, and the coordinating conjunction, attach to the first conjunct. A special c marking in the grammatical role records reference to the coordination.
The point of the marking is to distinguish the site where a link is recorded from the extent of the construction it modifies. In the reading where the determiner and the phrase about Arsenal both describe the combined group, the tree can preserve that interpretation through its choice of heads and roles. In the reading where the determiner goes with fans and the Arsenal phrase goes with supporters, the individual nouns have their own modifiers. The shared reading can require links that are nonprojective, meaning that the tree does not organize every dependency subtree as a continuous span of the sentence. The paper accepts that result to preserve the readings that the convention can distinguish.
Other conventions define the roles that the parsers predict. The corpus annotation originally has 31 syntactic non-head roles, with roles used solely for tokenization outside that count. The paper adds categories for marker complements, specifiers, and floating quantifiers. It removes the categories for conjunction markers and for a relation involving an expletive. It makes coordination-marked versions of 22 roles, producing an inventory of 54 grammatical roles. Prepositions serve as the heads of prepositional phrases. Punctuation is outside the dependency structure even though it appears in the sentence token counts.
How the parsers produce and combine dependencies
The steps in order.
Predicting a link from nearby tags
The shallow approach treats each token as a classification problem. Its input is a short sequence of nearby tags. Its target class records the token’s grammatical role and a description of its head, or marks the token as independent. The learner uses sequences of 3 or 5 tags, described in the paper as 3-grams and 5-grams. A context window can supply useful evidence about the local neighborhood even when it contains no full phrase structure. A longer window gives the learner access to additional positions, while the description of the head determines how that evidence can be translated into a link. The consecutive sequences used as features are n-grams.
The obvious way to identify a head is by its absolute position in the sentence. This makes the same local pattern a different class each time it occurs at a different position. The distance representation instead gives the direction and offset from the dependent. A head immediately before a dependent has the same relative description across sentences. Intervening words still change that description, even if they have little bearing on which syntactic relationship the parser needs to find.
The paper’s nth-tag representation describes the head by its part of speech, its direction, and which occurrence of that category to find in that direction. A description might point to a particular noun encountered to the right of the dependent. Words in other categories can intervene without changing the rank of that noun. The starting point is Lin’s idea of counting occurrences of a word type. Schiehlen substitutes part-of-speech categories to keep the inventory manageable and omits distinctions such as inflection and the division between proper and common nouns in the head description. The resulting label expresses a recurring structural pattern in a form that the classifier can use across different sentences.
A further variant, covered-nth-tag, narrows which intervening words count towards the rank. A head cannot also be a descendant of the word whose head is being chosen, because that would make a cycle. The variant therefore skips a same-category word between dependent and head if it depends on the dependent, directly or through other links. The rank then counts words that could serve as heads under this condition. The comparison between these two tag-based representations asks whether using this structural information adds value beyond the simpler counting scheme.
C4.5, a decision-tree learner, learns to associate the local tag patterns with the dependency classes. Training examples come from the reference dependency structure. At prediction time, a class that describes a head must be interpreted relative to the token receiving it. The learner always returns a class. A prediction pointing beyond the sentence is treated as an unassigned dependency in the evaluation. This rule distinguishes the decision tree’s ability to return an answer from the parser’s ability to express that answer as a link between actual words in the sentence.
The experiments use 10-fold cross validation. In this procedure, the evaluation rotates the held-out portion of the corpus so that the learner can be tested on examples outside the portion used to fit it. Schiehlen also tests a second learning pass in which the learner trains on the results it generated for its training data. That variant asks whether the initial predictions supply enough information for a subsequent pass to recover additional correct dependencies. It is a comparison within the shallow approach, separate from the procedure that combines it with the grammar.
Building structure with the cascade
The hand-written parser uses a series of finite-state transducers. A transducer reads a sequence and produces a transformed sequence, here identifying or decorating structures that later passes can use. The cascade begins with noun chunks, groups built around nouns. Since material can be embedded inside a German noun phrase, the parser can apply the same transducer repeatedly. A grouping identified on one pass can then be available within a larger grouping on another pass.
Inflection matters at this stage because word endings and forms can supply evidence about agreement and case. Agreement checks help determine which words can belong together. Case information can later narrow the roles a phrase can take in a clause. The shallow parser’s reduced description of a head deliberately ignores some distinctions of this kind. The grammar consults them where they constrain a possible analysis. This is the part of the cascade that draws directly on morphology.
The next stage identifies clauses by the position of the verb. It covers verb-final, verb-first, and verb-second clauses. Schiehlen’s transducers identify full clauses, including structures that can contain other clauses. This gives the later stages a way to reason about relationships within larger structures than the word-category windows used by the learner. As with noun phrases, successive processing can expose an embedded structure that can then participate in a larger one.
Interpretation transducers refine the resulting constituent structure and mark grammatical roles. These transducers can be nondeterministic: where their rules permit several readings, the procedure can retain alternatives. The parser then examines verb complexes to identify the head verb and distinguish auxiliaries involved in constructions such as the passive or raising. This step matters because the verb that supplies the clause’s argument requirements may be one part of a larger complex.
Once the head verb is available, the parser checks its subcategorization frames. A frame describes the kinds of arguments and complements a verb allows. A clause element can receive a more specific role when the grammar finds a compatible frame. The final stage extracts dependencies from the resulting parse. Directional head conventions and role labels yield the same kind of tuple that the shallow parser produces. The grammar can also return several possible versions of a tuple, with information about which readings license them.
Keeping attachment alternatives compatible
Underspecification leaves a choice open while recording what is already known about it. At a prepositional phrase, the grammar might have recognized the phrase itself and identified a set of possible heads. A straightforward output lists those heads separately for each phrase. For a sequence of phrases stacked after the same part of a clause, this can allow combinations that the original syntactic analysis would rule out.
The example with the seeing event, the man, the car, and the hill shows the problem. The preposition in can attach to the seeing verb or to man. The preposition on can attach to the verb, to man, or to car. If in attaches to the seeing verb, the reading in which the man is on the hill conflicts with the ordering of the attachments. When on attaches to car, both choices for in remain open. The paper counts six readings for the independent-head scheme and five for the constrained example. It uses a clause ending in 10 prepositional phrases to illustrate the wider gap: the loose scheme allows 39,916,800 readings where the constrained count is 58,786.
The proposed format labels each alternative with its context. First, the parser names each sequence of prepositional phrases within a clause. Within that sequence, it assigns dependents positions in left-to-right order and gives positions to possible heads, also from left to right. When the alternatives are stored with their dependent, the dependent’s position can be implicit. The indispensable information is which sequence the choice belongs to and where its candidate head lies relative to the others.
The paper imposes this ordering condition within a sequence. An equivalent way to state the condition is:
(i < j ∧ hⱼ ≤ mᵢ) ⇒ hᵢ ≥ hⱼ
Here i and j index two dependent phrases in left-to-right order, and hᵢ and hⱼ are the positions of their chosen heads in that sequence’s ordering of heads. The symbol mᵢ is the index of the last head available to dependent i; the available heads start at index 0. The signs <, ≤, and ≥ express the indicated order comparisons, ∧ means that both conditions hold, and ⇒ means that the condition on the right follows. The expression applies to every such pair within a sequence. When the earlier dependent could have chosen the later dependent’s head, its own choice cannot lie farther left than that head.
In the illustration, choosing man as the head of on requires the earlier in to choose a head at least as far right as man. Since man is the rightmost candidate for in, that resolves the choice. Choosing car instead puts the second head outside the earlier dependent’s available range. The restriction then leaves the choice for in open. The encoding gives a later stage access to these implications without requiring the cascade to generate a separate full parse for every permissible reading. The paper says that generating the representation leaves the overall system in the same complexity class.
The cascade uses this format for right modification, where stacking can produce the interaction. For left modification it uses the simpler scheme of listing the candidate attachments. The paper illustrates the distinction with usually appearing before competent people. Its account is that left modifiers typically do not form the kind of stack that calls for the additional ordering constraint.
Connecting attachment with the choice of argument frame
The same general device can preserve ambiguities in the assignment of argument roles. The paper illustrates this with the names Peter and Karl on opposite sides of the verb kennt. The possible readings exchange which name is the subject and which is the accusative object. The grammar assigns the ambiguity a context variable and labels the alternative readings with letters. Under one letter, Peter’s subject role goes with Karl’s object role. Under the other, Peter’s object role goes with Karl’s subject role. A later choice of reading therefore resolves both functions together.
Attachment and role can also be contingent on each other. In the paper’s example about Karl adding some thoughts, the phrase introduced by zu can be read in connection with the verb or with the noun meaning thoughts. The choice also depends on whether the verb reading makes it a prepositional complement or allows an adjunct reading. The context labels express that dependence. The nominal attachment is licensed under the reading in which the relevant adjunct alternative is available. This representation preserves something that a flat collection of links would omit: the conditions under which a proposed tuple belongs to a grammatical reading.
The two uses of context variables address different sources of ambiguity. For a sequence of prepositional phrases, the question is how one head position constrains another. For an ambiguous frame, the question is which role assignments go together. The example about adding thoughts shows why both may matter in the same sentence. A single link can have a plausible head and a plausible role in isolation while the combination of that link with another choice fails to describe any of the intended readings.
Choosing from the parsers’ predictions
Schiehlen tests several ways of choosing between the base predictions. Simple voting chooses the result favored by the most classifiers. When the grammar provides several readings, it divides its vote evenly among them. Weighted voting allocates votes according to how well a classifier performs on training data. Both approaches use support for an answer as the deciding quantity. They differ in whether each classifier starts with the same influence.
The Bayesian method described in the paper uses the observed reliability of a classifier’s prediction as evidence for a candidate. Its scoring rule can be expressed as a product of the conditional probabilities:
S(y) = ∏ᵢ P(y ∣ cᵢ)
In this expression y is a candidate answer for the token, S(y) is its score, and cᵢ is the answer predicted by base classifier i. The symbol ∏ᵢ means to multiply the terms across the base classifiers. P(y ∣ cᵢ) is the estimated probability that y is correct given the prediction cᵢ. The conditional bar ∣ separates the answer being assessed from the evidence supplied by the classifier. The paper estimates these probabilities with relative frequencies in training data and chooses the answer with the highest score.
Maximum entropy turns the combination into a further classification task. It retains the original features and adds the answers proposed by the base parsers. When the grammar gives an underspecified prediction, the corresponding feature can have several values. The implementation is OpenNLP’s maximum-entropy package. The paper specifies 10 training iterations and a feature-frequency cutoff of 10. The learning approach is attributed to Berger and colleagues’ maximum-entropy study.
The strategy that performs best in the reported comparison is a decision list constructed by greedy optimization of F-score. An item in the list associates a kind of prediction with a particular classifier. To train the list, the procedure tests candidate additions and appends the one that produces the largest increase in training F-score. The next addition is evaluated with the existing list in place. Training ends once the remaining items offer no further increase. A list can thus learn preferences that depend on the kind of answer under consideration, and the measured value of a new preference depends on what the list already does.
The parser also tries conditioning the list on the token’s part of speech. This makes the selection more specific: a preference for a parser on a particular relation can depend on the category of the word being attached. For predictions from the grammar, the optimization groups them by grammatical role and leaves the head position out of that classification. What the list learns is when a prediction of a certain kind should be preferred. The chosen dependency still contains a head position that can be scored against the reference. The decision lists are determined with 10-fold cross validation, keeping the search for useful selection rules distinct from their held-out evaluation.
Experiments and results
The corpus and the measures
The experiments draw on NEGRA, a treebank of German newspaper writing with ca. 340,000 tokens in 19,546 sentences. The longest sentence contains 115 tokens when punctuation is included. The comparison is based on the dependency representation derived from the annotation using the head and role conventions described above. This provides a common target for a learner trained on annotated links and a cascade that arrives at links by way of phrase structure.
The paper distinguishes I-tags, the word-category tags taken from the treebank, from T-tags, the tags produced by an automatic tagger. It reports 95% accuracy for that tagger. The treebank condition provides a view of parser behavior when the input tags are taken as given. The automatic condition includes the effect of tag errors on both the formation of candidate analyses and their selection. The tagger’s accuracy measures the categories assigned to tokens. The parser scores measure a different task, the recovery of labeled head–dependent links.
The share of proposed dependencies that match the reference is called precision. Recall is the share of reference dependencies that the parser recovers. Taking the harmonic mean of precision and recall gives the F-score, which drops if either measure is low. A labeled match requires the choice of grammatical role as well as of head. This matters when two readings connect the same words but give their relationship a different function, as can happen with an ambiguous argument frame.
The grammar has several evaluation conditions because permitting several readings changes what a single score can mean. The upper bound represents optimal selection among the candidates left open by the grammar. It measures the performance available from those candidates if the ambiguity is resolved ideally. The lower bound, in the terminology adopted by the paper, represents average disambiguation. It gives a reference point for how the available alternatives fare on average. The direct parser instead commits to fixed choices, favoring high attachment and word order without scrambling. This supplies a baseline with a single analysis selected by the grammar’s preferences.
The parsers evaluated on their own
With treebank tags, the direct finite-state parser scores .8471 in F-score, with precision of .8779 and recall of .8183. With optimal resolution of its alternatives, the same cascade reaches .8816 in F-score, .9137 in precision, and .8517 in recall. Under average resolution it scores .8266 in F-score, .8567 in precision, and .7986 in recall. The order of these results shows that the fixed choices are better than average resolution, while the candidate set also contains useful readings that those choices miss.
With automatic tags, the direct cascade scores .8073 in F-score, with precision of .8588 and recall of .7617. The upper-bound condition gives an F-score of .8377, with precision of .8910 and recall of .7903. The average-resolution condition gives an F-score of .7895, with precision of .8398 and recall of .7449. The three settings follow the same ordering as with treebank tags. The grammar’s upper bound also falls, showing that the input tag condition affects the availability of correct dependencies under ideal selection as well as the quality of the actual choices.
Finite-state parser F-score on NEGRA with automatic tags
The grammar’s fixed preferences beat average resolution, and ideal resolution makes better use of the available readings.
The numbers
| System or setting | F-score |
|---|---|
| Average resolution | .7895 |
| Fixed grammar preferences | .8073 |
| Ideal resolution (this paper) | .8377 |
For the shallow learner, the paper reports that the tag-based head description outperforms the distance representation by 10%. The 5-gram nth-tag learner is the strongest shallow partner in the combination experiments. How the learner finds its correct links matters alongside its overall accuracy. With the distance representation, 98.90% of the dependencies it gets right extend over no more than 3 tokens. That share is 82% for nth-tag. For comparison, short dependencies account for 79.63% of the finite-state parser’s correct links and 78.91% of the treebank’s links. These percentages describe the composition of the correct predictions or reference links. They are distinct from recall for short dependencies.
The second training pass for the shallow parser yields a statistically significant improvement in F-score, with recall rising and precision falling. For nth-tag trigrams, the paper reports an F-score of .7314, precision of .7397, and recall of .7232 in that experiment. The corresponding nth-tag 5-gram scores are .7763, .7826, and .7700. The tradeoff is important when reading those results. The extra pass finds more of the reference links, while a smaller share of the links it proposes are correct. F-score registers whether those changes are favorable in combination.
Which combination performs best
The comparison among combination strategies pairs the finite-state parser in its lower-bound setting with the C4.5 nth-tag 5-gram learner, using treebank tags. Simple and weighted voting both reduce performance relative to the base classifiers in that experiment. Greedy optimization of F-score gives the best result among the methods tested, ahead of the Bayesian and maximum-entropy approaches. For the pairing with the finite-state upper bound, the paper also gives .9089 as the F-score of the best possible choice between the two sources. That is a ceiling for selection in the specified pairing.
The paper tests the greedy method across several variants of the base parsers. With treebank tags and the grammar in the lower-bound setting, the nth-tag 5-gram hybrid scores .8795 in F-score without the extra conditioning on part of speech. Conditioning the decision list on part of speech raises the score to .8849, with precision of .8957 and recall of .8743. In the direct setting, combining the same shallow parser with the grammar gives F-scores of .8554 without the conditioning and .8745 with it. The fixed grammar by itself scores .8471. Under this input condition, a selector with access to unresolved grammar choices performs better than one that starts from the grammar’s fixed decision.
A hybrid supplied with the finite-state upper-bound output and the nth-tag 5-gram predictions achieves an F-score of .9008 without the extra conditioning and .9068 with it. The latter setting has precision of .9157 and recall of .8980. These figures help locate the room for improvement once ambiguity is already resolved in the grammar’s favor. They rely on the upper-bound input to the combination. The lower-bound pairing tests what the learned selector can do with the alternatives still available.
Under automatic tags, the lower-bound pairing with the nth-tag 5-gram learner scores .8520 without part-of-speech conditioning in the decision list, and .8563 with it. The direct pairings score .8329 and .8535 under those respective conditions. When the finite-state upper bound is supplied instead, the scores are .8579 and .8642. Across both tag conditions, the reported automatic selector gives the unresolved grammar output a practical role: the shallow parser’s evidence can help choose links that the grammar could already express but would otherwise resolve differently.
F-score on NEGRA for the grammar and hybrids with automatic tags
The strongest hybrid built from unresolved or fixed grammar output keeps the grammar’s alternatives and conditions selection on word category.
The numbers
| System or setting | F-score |
|---|---|
| Fixed grammar preferences alone | .8073 |
| Fixed grammar output with tag-conditioned selection | .8535 |
| Unresolved grammar output with tag-conditioned selection (this paper) | .8563 |
| Ideal grammar output with tag-conditioned selection | .8642 |
What another partner makes possible
Schiehlen closes the paper with preliminary results from combining the cascade with BitPar, a statistical parser written by Helmut Schmid. BitPar uses a context-free grammar. Its reported F-score on NEGRA is .816. In combination with the finite-state parser, the paper reports .9474 for the upper-bound condition and .9443 for the lower-bound condition. The paper presents this as ongoing work. The detailed set of controls for the C4.5 hybrid, including the treebank and automatic tag comparisons, is given for that hybrid. The BitPar figures describe a further pairing for which the paper supplies the corpus, the standalone score, and the two bound conditions.
What the ablations show
How the head is described matters
The distance and tag-based variants change the prediction target while retaining the same basic learning approach. This makes the comparison informative about the representation itself. In the distance version, every word inserted between a dependent and its head changes the offset. In the nth-tag version, an intervening word in another category leaves the head description intact. The overall advantage reported for nth-tag, together with the lower share of very short links among its correct predictions, supports the idea that the learner benefits from describing a head by a recurring category pattern. The distance learner’s correct output is much more concentrated on nearby pairs.
The acyclicity refinement is a narrower comparison. Covered nth-tag counts only intervening words of the right category that remain eligible under the structural condition. This yields a slightly better result than ordinary nth-tag, but the paper reports that the gain does not attain statistical significance in its t-test at 99%. The comparison therefore provides much clearer evidence for changing from raw distance to tag rank than for adding the exclusion based on descent. A restriction can make linguistic sense and still have a small measured effect when it applies only to a subset of the decisions.
The 3-gram and 5-gram variants test the value of the local context size. In the lower-bound grammar combinations with treebank tags and selection conditioned on part of speech, the nth-tag 3-gram pairing scores .8773 and the nth-tag 5-gram pairing scores .8849. In the corresponding distance pairings the scores are .8738 for the 3-gram and .8841 for the 5-gram. Within these combinations, both head encodings benefit from the wider context. The best setting joins the wider context to the tag-based representation. The close result for the 5-gram distance pairing also shows how much the grammar and selector can contribute when the shallow parser is weaker on some kinds of dependency.
Hybrid F-score on NEGRA by shallow-parser setting with treebank tags
The wider tag window helps both head representations when the selector uses word category and the grammar supplies unresolved alternatives.
The numbers
| System or setting | F-score |
|---|---|
| Distance with 3-grams | .8738 |
| Distance with 5-grams | .8841 |
| nth-tag with 3-grams | .8773 |
| nth-tag with 5-grams (this paper) | .8849 |
Retaining a candidate changes what the selector can recover
The comparison of the direct, lower-bound, and upper-bound settings separates the availability of a reading from the ability to select it. With treebank tags, the direct grammar’s score exceeds the average over resolutions. The paper attributes most of that advantage to the preference for high attachment. A reasonable fixed preference can therefore be a good starting point when a system has to commit by itself. If the preference chooses incorrectly, retaining the grammar’s alternatives gives the hybrid a chance to use the shallow parser’s evidence to make a different choice.
This distinction explains why a lower-bound score is a useful diagnostic even though it falls below the direct score. The score for average disambiguation says how well the candidates fare under an average choice. The hybrid trained on the unresolved output makes informed choices among them. With treebank tags, the tag-conditioned hybrid on lower-bound output reaches .8849, slightly above the grammar’s standalone upper-bound F-score of .8816. An upper bound for the grammar describes what can be selected from that grammar’s candidates. Adding another source of predictions allows the combined parser to recover some links outside that set.
The comparison also puts the gains from broader coverage in perspective. A hybrid that receives the ideally disambiguated grammar has already been supplied with favorable choices at the ambiguous sites. Its opportunities lie in repairing or supplementing the resulting predictions. In the unresolved condition, the hybrid has those opportunities and can also make better use of the candidates that the grammar produces. Schiehlen interprets the results as gains in both disambiguation and robustness, with less improvement in the coverage available when the grammar is evaluated under ideal selection.
Conditioning decisions on word category
The optimization experiments compare decision lists that use the prediction type alone with lists that also take account of the token’s part of speech. With treebank tags, the lower-bound grammar paired with the distance 5-gram learner scores .8730 without this conditioning and .8841 with it. Precision moves from .8973 to .9083 and recall from .8499 to .8612. Both components improve. The change is consistent with the idea that the best source for a prediction can depend on what kind of word is being attached.
How much improvement occurs varies with the setting. The treebank-tag combination with the upper-bound grammar and nth-tag 5-gram learner moves from .9008 to .9068. In the direct treebank-tag pairing the F-score moves from .8554 to .8745 with the extra conditioning. Under automatic tags the change for the unresolved pairing is from .8520 to .8563, and for the direct pairing it is from .8329 to .8535. These comparisons show that the selector can benefit from category information even when the input tags are fallible. They also show that part of the benefit of a better selector can come from recovering cases where a less specific decision list does poorly with the direct grammar’s output.
The strategy comparison addresses a related question about how the two sources should be trusted. Voting ties the choice to the support accumulated for each answer. A global weight recognizes that some classifiers are more reliable in aggregate. The greedy method can give a parser priority on a specific type of answer and, in its more detailed form, on a specific word category. Its success in the tested pairing is consistent with the role-by-role analysis: the strengths of the grammar and learner vary according to the relation being predicted. The comparison demonstrates this for the tested combination procedures and their settings.
Where the systems succeed and fail
The in-depth evaluation breaks recall down by grammatical role. The paper gives the corpus frequency of each role and the standard deviation of the distance between dependent and head alongside its recall. Frequency describes how much a role can contribute to the overall score. Distance variability gives context for the task faced by both local representations. For the finite-state parser, the paper reports recall under optimal disambiguation, and for roles where it retains ambiguities, it also gives recall under average disambiguation. The gap helps identify relations for which the grammar can produce the right link but leaves the choice open.
Relations between function words and content words tend to be frequent and easy for all the approaches. The paper gives specifiers, marker complements, and the infinitival zu marker as examples. The grammar has an advantage on arguments such as subjects and accusative, dative, genitive, and clausal objects. Some ambiguity persists among these roles because of German word order. The paper finds no such ambiguity in the reported-speech relation. The grammar also performs well on parts of verb complexes, including separable prefixes, governed verbs, and predicative complements. These are places where its clause and verb analysis offers evidence tailored to the particular construction.
Attachment uncertainty affects a different group, including modifiers, negation, postnominal modifiers, certain genitives, and appositions. The evaluation finds no attachment ambiguity for prenominal genitives. That difference shows why grouping all modifiers into one broad class would obscure relevant behavior. The position and construction affect the opportunities for competing heads, so access to unresolved grammar output can matter more on one role than on another.
Some of the grammar’s weak roles reflect implementation gaps. Relative clauses are difficult for the learners as well. The paper explains that they are frequently extraposed to the right and reports an average dependent-to-head distance of -11.6 under its signed convention. Comparatives, measure phrases, and floating quantifiers also include kinds of adjunction the cascade has yet to implement. Coordination is difficult both when connecting conjunctions to conjuncts and when representing a dependency whose interpretation involves several conjuncts. These outcomes help explain why a high overall F-score does not settle how well either approach handles the less frequent constructions in the corpus.
Limitations
Limits identified in the paper
The cascade deliberately underspecifies selected ambiguities. Its ordering constraint addresses sequences of right modifiers, and its context labels also allow some argument-frame choices and attachments to be coupled. The scheme’s scope is the types for which the grammar builds those alternatives and assigns the relevant constraints. Where the grammar omits a construction, ideal disambiguation cannot manufacture its dependency. The paper identifies relative clauses, comparative constructions, measure phrases, and floating quantifiers among the areas where the cascade lacks some adjunction rules. It also states that the cascade does not treat vocatives.
The word-based representation introduces limits of its own. In NEGRA, the paper reports ellipsis in 1.2% of dependency relations and observes that there is no generally accepted word-based treatment for a missing head. A verb complex poses a different problem when semantic distinctions concern the scope of its parts. Choosing one head for evaluation gives the parsers a consistent target while leaving those scope distinctions to further interpretation. The dependency evaluation measures agreement with the chosen reference conventions on these constructions.
Coordination illustrates the limits of imposing a single head on each token. The direction-sensitive convention and special roles preserve distinctions that could disappear under a rule which always selects the first or the last conjunct. Schiehlen still gives an example in which the proposed mapping can yield an unintended analysis. The paper puts the scheme’s failure rate at 0.0017% of all dependency tuples. That figure describes failure of the representation in this respect, rather than an estimate of how frequently the parsers make coordination mistakes. Their performance on coordination remains a separate empirical difficulty.
The paper also cautions about the dependence of the shallow result on short links. A strong overall score can coexist with limited success on relations that span more of a sentence. The role and distance analyses describe where the parser gets credit, and the second training pass shows that higher recall can come with lower precision. These details qualify any claim that a single F-score describes the quality of the analysis for every construction.
Limits of what the experiments establish
The evidence comes from German newspaper text in NEGRA and from the role and head conventions used in this evaluation. Cross validation measures performance on held-out portions of that corpus. Transfer to other genres, annotation schemes, or languages remains open. Even within German, a different convention for the head of a prepositional phrase or for coordination would alter the classes the learner predicts and the matches counted in the score. The paper reports a small empirical advantage for choosing the preposition as head in its setup, giving a practical reason for that choice within the study.
The treebank-tag and optimal-resolution conditions answer controlled questions about the parsers. Treebank tags reduce uncertainty at the input, while ideal selection shows what the grammar’s candidate set can offer. Practical operation with automatic tags and unresolved choices is better represented by the T-tag combinations using a trained selector. The upper-bound results still matter because they locate errors in different parts of the procedure. A correct candidate missing even under ideal selection is a different problem from a correct candidate that is present but passed over.
There is also a distinction between recovering labeled links and recovering complete, mutually compatible analyses. The paper defines constraints on alternative readings and evaluates outputs through the precision and recall of individual tuples. The reported numbers establish the quality of the recovered links under that evaluation. They leave the rate of complete sentence analyses that satisfy all coupled choices undetermined. The paper mentions possible semantic uses when discussing the choice of representation, but it does not measure the effect on a downstream interpretation task.
Finally, some comparisons change packages of decisions. The direct condition chooses both high attachment and an unscrambled word order. The paper attributes most of its advantage over average resolution to attachment, while the headline direct-versus-underspecified comparisons do not give a separate score for every ambiguity type with each preference varied independently. The by-role results provide finer evidence about where uncertainty remains. They give a picture of the constructions responsible for the aggregate changes without assigning a standalone contribution to each rule in the cascade.
What came after
The later citing work focuses on the coverage and parsing quality of a large-scale Lexical-Functional Grammar for German. That focus connects to Schiehlen’s distinction between finding a viable analysis and choosing it. A grammar with a gap in its coverage needs a way to produce the missing analysis. A grammar that already includes the reading can benefit from a better way to select it. The citation establishes a connection between the papers. Which specific representation, parser component, or selection procedure the later study used remains undetermined. Improving coverage and parsing quality of a large-scale LFG for German
Cite
Cite as Michael Schiehlen. 2003. Combining Deep and Shallow Approaches in Parsing German. Proceedings of the 41st Annual Meeting of the Association for Computational Linguistics.
@inproceedings{michael2003combining,
title = {{Combining Deep and Shallow Approaches in Parsing German}},
author = {Michael Schiehlen},
booktitle = {Proceedings of the 41st Annual Meeting of the Association for Computational Linguistics},
year = {2003},
doi = {10.3115/1075096.1075111},
url = {https://doi.org/10.3115/1075096.1075111}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/schiehlen-2003-combining-deep-shallow-approaches-parsing/