Elamur Research

A Dependency-Driven Parser for German Dependency and Constituency Representations

Paper · 2008 · Johan Hall and Joakim Nivre

Summary

A German sentence can be annotated by grouping words into phrases or by linking each word to the word it depends on. These representations make different parts of the syntax explicit. Johan Hall and Joakim Nivre ask whether the same parsing machinery can produce both kinds of analysis. They extend MaltParser 1.0 for a shared task covering the dependency and constituency versions of the German newspaper treebanks TIGER and TüBa-D/Z. The central challenge is to recover an entire phrase tree, including its grammatical functions, from a graph whose nodes are words. Their solution is to carry the details needed for reconstruction in the labels predicted during dependency parsing.

To prepare a constituency tree for training, the authors give every phrase a representative word, called its lexical head. They then use those words to build a dependency graph. Each resulting arc carries information about the phrase categories and grammatical functions along its dependent’s branch, the height at which that branch joins the head’s branch, and the function of the branch at that join. The conversion is reversible on the prepared constituency data from both treebanks. TIGER uses a simple leftward preference in head selection, while TüBa-D/Z varies the search direction by phrase category. The resulting arcs serve the needs of reconstruction and can differ sharply from the arcs in the official dependency annotation for the same sentence.

Both tracks use an arc-eager algorithm, which builds a graph from left to right by choosing one action at a time. The authors separate the choice of action from the prediction of arc labels, using direction-specific LIBSVM classifiers with a quadratic kernel. The separated strategy performed better in development for every dataset. In the dependency track, pseudo-projective parsing lets the system handle arcs outside the transition algorithm’s ordinary range by transforming training graphs and reversing the transformation on predicted graphs. In the constituency track, the parser predicts the components of each complex arc label separately and then uses them to rebuild the phrases.

On the shared-task dependency test data, the system achieved a labeled attachment score of 90.80 for TIGER and 88.64 for TüBa-D/Z, counting punctuation. These were the best dependency scores in the task. For constituency, the labeled F-score was 65.18 for TIGER, with precision of 67.06 and recall of 63.40, and 75.60 for TüBa-D/Z, with precision of 76.44 and recall of 74.79. The constituency results ranked second among three systems. The TüBa-D/Z result is close to the 75.33 reported in earlier work for a Stanford parser configuration on that treebank. The authors qualify comparisons across evaluations because details such as the test data, punctuation policy and use of supplied grammatical functions can differ.

The experiments establish that a dependency parser can learn to produce a representation from which full phrase trees can be assembled. The evaluation counts grammatical functions on constituent edges and excludes those on edges leading directly to words. The tested constituency data use continuous phrases, and a repair step keeps predicted trees compatible with nested brackets. More elaborate head rules yielded no gain in the authors’ late trials. They leave discontinuous phrase parsing and a fuller investigation of the head rules open.

Deep dive: A Dependency-Driven Parser for German Dependency and Constituency Representations

How an extended MaltParser uses word dependencies to recover German phrase trees, and how it performs on the TIGER and TüBa-D/Z shared-task data. · about 33 minutes to read

The problem and its context

What each representation makes visible

A dependency analysis answers a word-level question. For each word, it identifies the word that governs it and gives their relation a label. In an example used throughout the paper, the dependency annotation draws an arc from hat to Beckmeyer and labels it SUBJ. The edge records that the annotation treats Beckmeyer as a subject dependent of hat. A parser that gets the head right and assigns a different relation has recovered only part of the required analysis.

A constituency analysis organizes the same words through nodes for phrases and larger units. A word can belong to a phrase, that phrase can belong to a larger constituent, and the larger constituent can occupy a particular position in the sentence structure. Each phrase category identifies the kind of unit at that node. A grammatical function on its incoming edge identifies the role it plays in the unit above. Thus a tree can record a series of categories and roles above a single word. The distinction between what a phrase is and what it does in its parent is part of the treebank’s linguistic annotation.

A word-to-word arc can carry some of this information. The SUBJ arc, for example, gives a grammatical relationship directly. Rebuilding a phrase tree requires further decisions. Where does the subject phrase start and end? Which nodes intervene between the word and the rest of the sentence? Which functions belong to those intervening edges? The head and relation in an ordinary dependency graph leave room for different answers. To use a dependency parser as a constituency parser, Hall and Nivre need an encoding that determines those answers when its arcs and labels are correct.

The shared task made this a concrete engineering problem. The organizers supplied the German corpora TIGER and TüBa-D/Z in both annotation formats. The formats for any given treebank covered the same sentences, giving the authors a common input alongside distinct targets. One target was the dependency annotation distributed by the organizers. The other was a phrase tree whose description had to survive conversion to a form MaltParser could learn. Choosing to enter both tracks meant addressing both targets with the same transition algorithm. TIGER and TüBa-D/Z are both German newspaper treebanks.

Why German was part of the question

The paper situates the work in an earlier debate over parsing difficulty. Kübler and colleagues had drawn attention to the placement of finite verbs, the flexibility of phrase order and the possibility of discontinuous phrases in German. A discontinuous phrase contains material that is separated by intervening words outside that phrase. Its members cannot all be enclosed in one uninterrupted stretch of text. This affects how an analysis can be represented as well as how a parser can construct it.

The earlier work discussed in the paper also points to differences between annotation schemes. Dubey and Keller, and later Dubey, studied the flat constituent structures found in Negra. In those studies, adding lexical information to a probabilistic context-free grammar reduced parsing accuracy. Lexicalization in this setting gives the grammar access to distinctions associated with words. The earlier findings show how the effect of such a choice can depend on the way the reference trees organize phrases. The relevant studies include Probabilistic Parsing for German Using Sister-Head Dependencies and the description of the Negra annotation in An Annotation Scheme for Free Word Order Languages.

A comparative study by Kübler and colleagues suggested that German could be as tractable to parse as English. Rehbein and van Genabith approached the question through evaluation. They simulated parsing errors on German treebanks with different annotation schemes and examined the behavior of different measures. In their account, the comparison between languages remained unresolved. These lines of work give the German shared task an important distinction. A reported score reflects performance against a representation and an evaluation protocol as well as the linguistic material in the sentences.

Hall and Nivre take up the narrower question of how to obtain the requested analyses. They show what can be done with a single style of parser when the two forms of annotation require different outputs. Their choice of an intermediate graph lets them study whether the same operations that establish a word’s head can also carry the information needed to place a whole phrase. The conversion and its labels therefore matter as much to the constituency submission as the choice of parsing algorithm.

The starting point in dependency parsing

MaltParser already had experience behind it in multilingual dependency evaluation. The paper places it among the strong systems in the CoNLL 2006 and 2007 shared tasks. Its established approach was to construct analyses through a sequence of local decisions about what to do next. The authors could carry that machinery over to the German task and concentrate their extension on the decisions and labels needed for each representation. The earlier competitions are described in the CoNLL-X multilingual dependency parsing task and the CoNLL 2007 dependency parsing task.

MaltParser could use several algorithms. For this study the authors selected Nivre’s arc-eager algorithm for both tracks. In that algorithm, the parser builds a graph as it encounters the words, choosing from a small inventory of operations. A classifier guides the decisions for which the current state permits a choice. An early decision can influence later ones because each action changes the contents of the stack, the pending input or the partial analysis. The design aims for good local decisions as a way to obtain a good complete graph.

The constituency extension needs this same procedure to learn edges with a different purpose. In the dependency track, a graph is the answer delivered for scoring. In the constituency track, the graph is a compact description of an answer that still has to be assembled. The labels on its arcs consequently have to name categories, roles and locations that do not exist as distinct nodes at the moment the transition is chosen. The paper’s main design decision is how to divide that information between the endpoints of an arc and its label.

The method, step by step

From a training tree to a predicted tree

The constituency procedure has a preparation side and a prediction side. During preparation, the parser has annotated phrase trees. The authors convert them into dependency graphs and use the graphs to determine the sequence of actions that training should reward. At prediction time, the system starts with a sentence and builds a graph from the actions and labels chosen by the classifiers. The final conversion operates on that predicted graph. In the dependency track, the authors start with the supplied dependency annotation and prepare it for the same transition algorithm.

Constituency parsing through a dependency graph

The steps in order.

Constituency parsing through a dependency graphStep 1: Find the lexical head of each training constituent1. Find the lexical head of each training constituentStep 2: Determine the head of each token2. Determine the head of each tokenStep 3: Encode phrase structure in dependency arc labels3. Encode phrase structure in dependency arc labelsStep 4: Train classifiers on the encoded graphs4. Train classifiers on the encoded graphsStep 5: Predict a labeled graph for a new sentence5. Predict a labeled graph for a new sentenceStep 6: Rebuild phrase branches and attach them6. Rebuild phrase branches and attach themStep 7: Repair discontinuities for nested bracket output7. Repair discontinuities for nested bracket output

The intermediate graph preserves the word sequence and introduces an explicit choice about which word represents each constituent. This choice is central to both directions of the conversion. In the forward direction it determines which words become linked and which parts of the tree a label needs to describe. In the reverse direction it tells the decoder which phrase nodes belong together above a given word and which other word supplies their point of attachment.

Choosing the representative word of a phrase

The authors distinguish a head-child from a lexical head. A head-child is an immediate child selected to represent its parent. That child can be a word or a smaller constituent. A lexical head is always a word. If the head-child is a phrase, the parent inherits the word that heads that phrase. Accordingly, a word can head an entire chain of constituents above it. The head choices can be made recursively by visiting the tree from its root and examining the children of each constituent.

The TIGER rule prioritizes an immediate lexical child. The search moves from left to right and selects the first such child. If all the children are themselves constituents, the parser chooses the leftmost child phrase and obtains its lexical head recursively. An immediate word can therefore be selected ahead of a word buried in an earlier child phrase. This detail matters because the rule is applied locally at each node. Describing it simply as choosing the first word covered by a phrase would give a different rule.

For TüBa-D/Z, the direction depends on the category of the constituent whose head is being chosen. The authors found a right-to-left search beneficial for ADJX, ADVX, DM, DP, NX and PX. This leaves the general procedure intact. It changes the order in which the children of the current constituent are considered and can thereby change the word inherited by larger constituents.

A head-finding rule can also give priority to particular parts of speech or grammatical functions. The authors mention that possibility and tried versions with more linguistic guidance. The submitted conversion is readily understood as a set of simple structural preferences. Its head is the word that will carry information for a branch during parsing. That purpose explains why some head choices look unusual if read as claims about which word governs the sentence linguistically.

Building the dependency arcs

Once each phrase has a lexical head, the converter determines the governing word for each token. Consider a token and its closest containing constituent. If that constituent has a different lexical head, the token depends on that head. If the token itself heads the constituent, the search continues upward. The head is found where this upward chain reaches a constituent represented by another word. The lexical head of the root constituent becomes the root word of the resulting graph.

This construction divides the phrase tree into branches associated with individual words. Along one branch, the same word continues to represent each successive constituent. At the join with a branch represented by another word, the intermediate graph places a dependency arc between the two words. The arc direction identifies the head branch and the dependent branch. The arc alone leaves the detailed description of the join open, since the head word may represent more than one phrase along its branch.

The labels solve two reconstruction problems at that join. The decoder has to know which phrase nodes to build above the dependent word. It also has to know which node above the head word receives the dependent branch. The first problem involves the categories and functions inside a branch. The second involves the height and function of its attachment. The converter places these pieces together on the arc leading into the dependent.

What the complex label records

The authors construct each arc label from four components. The dependency relation, in their terminology, gives the grammatical function at the top of the dependent branch. More precisely, it belongs to the edge that joins the highest constituent headed by the dependent to the constituent above it. If the word heads no phrase, its own attachment supplies that role. This part of the label describes how the dependent branch participates in the structure around it.

The head-relations component gives the sequence of grammatical functions on the way from the dependent word to the top of its own branch. The constituent-label component gives the sequence of phrase categories on that same route. Both lists are ordered upward from the word. The vertical bar separates consecutive entries within a path. Keeping the lists ordered allows the decoder to pair a category with the appropriate edge function while building the branch.

The attachment component is a non-negative integer. It identifies a level on the head word’s branch at which the top of the dependent’s branch must be placed. Two dependents of the same head word can therefore belong to different phrases above that word. Their arcs share a head endpoint, but the attachment component tells the decoder which phrase receives each dependent. This information would be missing from a graph that indicated only the word-level attachment.

The distinction between the first two components is easy to miss. Both carry grammatical functions, but they apply to different edges. The path describes the internal edges of the branch associated with the dependent. The dependency relation describes the edge that carries the entire branch into the surrounding structure. Storing that last role separately keeps the receiving node on the head side and the branch being attached on the dependent side.

There are also conventions for empty or exceptional cases. When a word has no sequence of phrases above it that it heads, the path components receive *. A missing grammatical function can be represented by ??. The virtual root, VROOT, is handled separately. The encoding treats VROOT as a dependency relation, leaving it outside the path of ordinary constituent labels. These conventions allow a short branch, an unspecified edge function and the top of the tree to be distinguished during inversion.

Following the example from Beckmeyer to Für

The paper shows the encoding on a TüBa-D/Z sentence about Beckmeyer, a statement and evidence. In the phrase tree, the constituent labeled MF has only constituent children. Its leftmost constituent child is an NX, whose lexical head is Beckmeyer. That word consequently represents MF as well as NX. Higher in the tree, SIMPX is represented by Für. Since MF belongs under SIMPX, the graph links the representative of SIMPX to the representative of MF. The arc runs from Für to Beckmeyer.

The arc’s full label is (??, HD|ON, NX|MF, 2). The category path NX|MF tells the decoder to build NX above Beckmeyer and MF above NX. The grammatical function path HD|ON supplies the roles along that ascent. The first component, ??, records the absence of a specified function on the edge above MF. The final component, 2, selects the location on the branch headed by Für where MF is to be joined.

Changing that last component would change the phrase tree even if the dependency endpoints, the phrases above Beckmeyer and their internal functions stayed the same. The paper gives the concrete alternative of 1, which would attach MF at VF instead of SIMPX. This isolates the job of the attachment component. The arc establishes which word supplies the receiving branch, and the level determines which node on that branch receives the dependent. A level error can thus be a constituent-structure error even when the two words on the arc are correct for the encoding.

The same example includes arcs from diese to Behauptung and from keinen to Nachweis. Both carry (HD, *, *, 0). In these cases the dependent word joins a phrase but heads no constituent of its own. The decoder has no chain of categories or internal functions to add above the dependent. The label has only to specify the joining function and position. The identical labels describe the same structural situation in separate parts of the sentence.

Why the same sentence has different graphs

The paper places the converted graph alongside the supplied dependency analysis for the same sentence. In the phrase tree, Für diese Behauptung has the function OAMOD. The annotation identifies it as a modifier of the direct object keinen Nachweis, which occurs elsewhere. The supplied dependency version expresses that relationship with an arc from Nachweis to Für, labeled PP. That arc is non-projective. The intermediate graph instead follows the constituent hierarchy, leaving the relationship recorded through the phrase annotation it has been designed to reconstruct.

The root also changes. The supplied dependency analysis makes hat the root. The conversion chooses punctuation as the root word because the punctuation is the lexical child selected under VROOT. Its position at the end of the sentence is compatible with that choice because the heuristic first looks among immediate lexical children. The order of words within the other children is a separate matter. This example ties the apparently unusual root back to the precise head-selection rule.

Finally, the supplied graph uses dependency labels with meanings specific to that annotation. The intermediate graph needs its labels to describe the construction of a phrase tree. The example therefore shows differences at the level of individual relations, head assignments and the sentence root. A dependency arc can be appropriate for the supplied dependency analysis and unnecessary for the constituency encoding, even when both represent the same original text. The two outputs should be interpreted according to the annotations each was built to recover.

Constructing a graph from left to right

Both tracks use the arc-eager transition system. Its state includes a stack of partially processed words and a queue of words still to be read. The stack gives the parser access to the most recent eligible word already encountered. The front of the queue holds the next input word. At each step, the algorithm can move a word between these structures, add a labeled arc or remove a word from the stack, depending on the action.

With LEFT-ARC, the next input word becomes the head of the word on top of the stack. The parser assigns the arc its label and removes the dependent from the stack. At this point the procedure treats that dependent as complete. Its own dependents must already have been taken care of before it is removed. The next input word remains available to take part in subsequent actions.

With RIGHT-ARC, the direction is reversed. The word on top of the stack governs the next input word. The algorithm adds the labeled arc and moves the new dependent from the queue to the stack. This gives that word a head early while preserving its availability to take dependents farther to the right. Attaching such right dependents as soon as the action is available is the property highlighted by the name arc-eager.

REDUCE removes the top word from the stack after it has a head and has finished acquiring right dependents. It is the way to finish with a word that has already been attached, including one brought onto the stack by RIGHT-ARC. SHIFT moves the next input word onto the stack without creating an arc. It applies when the word’s head remains to the right or when the word is destined for root attachment. The implementation starts with an empty stack and assigns the root dependents a default root label after the left-to-right pass.

Nivre’s algorithm builds labeled projective structures in linear time. Projectivity here constrains which configurations of arcs are possible over the left-to-right word order. The supplied German dependency graphs include configurations outside that constraint. The transition system still provides a common engine for the two tracks, with different preparation around it. The graph constructed by the engine is either a projective form of the dependency annotation or an intermediate representation of a continuous phrase tree.

Preparing non-projective dependency graphs

For the dependency data, training proceeds by reconstructing the legal sequence of transitions that yields a reference graph. This sequence provides examples of which transition to choose at each state and which relation to assign when a transition adds an arc. The ordinary dependency relation is an atomic category in this setup. The label SUBJ, for example, is learned as a relation name and carries no separate sequence of phrase categories.

When a reference graph is non-projective, the authors first transform it into a projective graph. They encode information about the changed links in the arc labels. After parsing, a reverse transformation uses that information to recover non-projective links from the projective output. The earlier method that supplies this procedure is Pseudo-Projective Dependency Parsing.

This treatment and the constituency conversion share the broad idea of using labels to carry information needed after parsing. Their restoration tasks differ. Pseudo-projective processing recovers word-to-word links that the transition system could not construct directly. Constituency decoding creates phrase nodes and gives their edges grammatical functions. The submitted constituency parser uses that second procedure on data prepared with continuous constituents. Its results provide evidence about that particular use of dependency encoding.

Predicting the action and then its label

Earlier MaltParser configurations could treat a transition and its arc label as one classification decision. In such a design, the choice to add an arc in a certain direction with a certain relation is a single outcome. The extended version first predicts the transition on its own. SHIFT and REDUCE need no further prediction. LEFT-ARC and RIGHT-ARC each call their own label classifier. In the dependency track, the arrangement therefore uses three feature sets, covering the transition and the two directions of relation prediction.

The constituency track increases the number of decisions made after an arc transition. Each component of the arc label is predicted separately, with a distinct feature set for each direction. There are nine feature sets in all. One is for the transition. For each component, there is a set for left arcs and a set for right arcs. This decomposition gives each classifier a narrower target. For example, the direction of an arc can be chosen before its attachment level is predicted, and the category path can be predicted separately from the grammatical function at the join.

The feature sets are history-based. They characterize the current parsing state as it results from the input and earlier transitions. The deterministic mechanics update the state after an action, while the classifier chooses what to do at points of uncertainty. During training the reference graph supplies the correct sequence. During parsing, the classifiers supply the decisions and those decisions determine the following states. The same transition mechanics thus serve both phases, while the source of each decision changes.

The authors convert symbolic features to numerical features for LIBSVM. They use the same quadratic kernel settings for the reported results.

K(xᵢ, xⱼ) = (γxᵢᵀxⱼ + r)²

Here K is the kernel, which assigns a similarity value to two numerical feature vectors. xᵢ and xⱼ represent the instances indexed by i and j. The superscript ᵀ transposes the first vector so its product with the second is their dot product. The parameter γ scales that product and is set to 0.2. The parameter r is the additive offset and is set to 0. This r is a kernel parameter. The same letter in the paper’s description of an arc denotes its relation label. The superscript ² squares the quantity inside the parentheses, giving the quadratic kernel.

The penalty parameter C is 0.5, and the termination tolerance ε is 1.0. The former is a training setting for the penalty assigned to classification violations. The latter governs when the training procedure stops. The authors also divide the training instances according to the fine-grained part-of-speech tag of the next word in the queue. Each partition has separate multiclass LIBSVM classifiers using one-versus-one comparisons, in which classifiers distinguish pairs of classes. The fine-grained tag is thus used both to describe the input and to route training instances. It identifies distinctions within the word categories supplied by part-of-speech tagging.

Rebuilding the phrase structure

The inverse conversion first looks at individual words and reconstructs the branch headed by each one. It reads the constituent categories and head relations from the predicted label, assembling nodes above the word and assigning functions to their edges. This is the bottom-up part of the reconstruction. It yields a collection of branches, some with several nodes and some consisting of a bare word that has no phrase of its own.

The second part proceeds from the root of the dependency graph. The decoder visits a head before recursively visiting its dependents, following a preorder depth-first traversal. For each dependent, it takes the top of the dependent’s reconstructed branch and attaches it at the specified level of the head’s branch. The dependency relation from the complex label becomes the grammatical function on the connecting edge. Applying this procedure throughout the graph joins the separate branches into one phrase structure.

The authors report that conversion to dependencies and back preserved the whole reference constituency structure for both prepared treebanks. With predicted labels, a wrong attachment level can place a phrase so that its words form a discontinuous group. The target output is a nested bracket format, so the authors post-process the tree by moving discontinuous constituents downward until the output fits that format. This step deals with a possible consequence of prediction errors and makes the result representable in the format required by the task.

Experiments and results

The task data and what the parser received

The organizers prepared dependency and constituency data from TIGER and TüBa-D/Z. Both corpora contain German newspaper text. For each treebank, the prepared training set contained 20,894 sentences and the development set contained 2611 sentences. Within a treebank, the dependency and constituency versions used the same sentences. The fixed training and development sizes make the evaluation easier to read: each version has a comparable amount of prepared material, while the annotation and the target structure vary.

The dependency data use the CoNLL tabular format. The authors leave the LEMMA, FEATS, PHEAD and PDEPREL columns unused. The information needed for training includes the reference heads and relations in the prepared dependency annotations. The constituency data use a bracketed representation similar to the Penn Treebank format. The prepared trees have a VROOT node at the top, and their constituent spans are continuous.

The test data supply gold-standard part-of-speech tags. The constituency input also makes grammatical functions associated with those tags available. The authors explain that they did not realize these functions were intended as permissible input. Their submission therefore assigns the functions itself. This distinguishes their setup from one where a parser can condition on the supplied functions. The difference can matter to the resulting phrase structure even though the constituency metric excludes direct word-edge functions from scoring.

For optimization, the authors use 80% of the development data, setting aside the remaining 20% for final preparations ahead of the test data release. For the final test run, they train using both the training and development sets. The reported test results thus use the settings chosen in development and the combined annotated material available for final training. The four configurations share the parsing machinery and differ in their fitted classifiers and the annotation they target.

Dependency evaluation

The shared task measures dependency performance with labeled attachment score, or LAS. A token counts as correct only if it has both the reference head and the reference arc relation. The evaluation includes punctuation. Consequently, the score reflects labeled word-to-word attachments across all tokens covered by the task’s policy. It combines head choice and label choice into a single correctness test for each token.

Extended MaltParser on TIGER and TüBa-D/Z dependency test data by labeled attachment score

The system achieved its higher labeled attachment score on TIGER.

Extended MaltParser on TIGER and TüBa-D/Z dependency test data by labeled attachment scoreExtended MaltParser on TüBa-D/Z: 88.64Extended MaltParser on TüBa-D/Z88.64Extended MaltParser on TIGER (this paper): 90.80Extended MaltParser on TIGER (thispaper)90.80
The numbers
System or settingLAS %
Extended MaltParser on TüBa-D/Z88.64
Extended MaltParser on TIGER (this paper)90.80

The test LAS was 90.80 on TIGER and 88.64 on TüBa-D/Z. The paper reports both as the highest in the shared task for their respective treebanks. These scores concern the supplied dependency versions, with pseudo-projective processing around the dependency parser. They give the system’s success rate on the combined head and label criterion. They neither identify which mistakes involved the wrong head nor say how many recovered arcs required deprojectivization.

The authors discuss a result from an earlier German dependency competition as context. In CoNLL-X, McDonald and colleagues obtained the highest German LAS, 87.34, using data based on TIGER. The evaluations used different datasets and different policies for counting punctuation. The earlier score is therefore a benchmark from another setup, with its own test conditions. The earlier system is described in Multilingual Dependency Analysis with a Two-Stage Discriminative Parser.

The paper reports the shared-task standing and its own scores without tabulating the other entrants’ scores beside them. The evidence for the ranking is the authors’ account of the competition. It is possible to identify the winning submission on each dependency dataset from that account, while the score chart addresses the two settings of that submission. The chart compares performance against the separate annotation targets given to the parser in the same task.

Constituency evaluation

Constituency scoring asks whether the predicted phrases agree with the reference structure. Labeled precision, or LP, describes how frequently the produced constituents match the reference. Labeled recall, or LR, describes how much of the reference structure the parser found. For a labeled match, the category and grammatical function have to agree. The evaluation excludes functions on edges that directly join a word to a constituent. Labeled F-score, or LF, combines labeled precision and labeled recall in one result.

On the TüBa-D/Z constituency test data, labeled precision was 76.44, labeled recall was 74.79 and labeled F-score was 75.60. On the TIGER constituency test data, labeled precision was 67.06, labeled recall was 63.40 and labeled F-score was 65.18. Precision is higher than recall on both datasets. In terms of the evaluation, the share of proposed constituents that met the match criterion was higher than the share of reference constituents that the parser recovered.

Extended MaltParser on TIGER and TüBa-D/Z constituency test data by labeled F-score

The system achieved its higher labeled constituency F-score on TüBa-D/Z.

Extended MaltParser on TIGER and TüBa-D/Z constituency test data by labeled F-scoreExtended MaltParser on TIGER: 65.18Extended MaltParser on TIGER65.18Extended MaltParser on TüBa-D/Z (this paper): 75.60Extended MaltParser on TüBa-D/Z (thispaper)75.60
The numbers
System or settingLabeled F-score
Extended MaltParser on TIGER65.18
Extended MaltParser on TüBa-D/Z (this paper)75.60

The constituency performance was second among the three systems in the shared task. That placement establishes a different level of competitiveness from the winning dependency results. It also comes with the input qualification about grammatical functions. The paper gives the absolute scores and rank while cautioning that systems may have used the supplied functions differently. A comparison of parsing algorithms under identical inputs would require those choices to be held constant.

The historical constituency comparison comes from Kübler and colleagues, who used an unlexicalized, markovized probabilistic context-free grammar in the Stanford parser. A grammar of this general kind assigns probabilities to phrase-building rules. The unlexicalized configuration organizes these rules without using particular head words as part of their identities. The authors report that the earlier study obtained labeled F-scores of 75.33 on TüBa-D/Z and 51.41 on Negra. The TüBa-D/Z number is the closer point of comparison because it names the same treebank. The Negra score concerns a separate corpus and annotation, so it gives context for earlier German constituency parsing. This approach is based on a probabilistic context-free grammar.

Within the shared task, TIGER has the higher dependency LAS and TüBa-D/Z the higher constituency LF. These rankings come from measurements on different targets. The change in order shows that the measured performance of the system on a treebank depends on which annotations it is asked to recover. The scores do not isolate the contribution of any particular difference in the trees, labels or feature sets. Their strongest common conclusion is that the transition system delivered competitive results on both kinds of output.

What the scores cover after decoding

The dependency evaluation occurs on the output intended to express the supplied word relations. The contribution of pseudo-projective processing is therefore part of the final LAS. The reported constituency evaluation occurs on the reconstructed output in brackets. Its score combines what happened during transition choice, the separate label predictions, the construction and joining of branches, and any repair needed for bracketing. Each metric measures the result at the end of its track.

This point also separates successful conversion from statistical accuracy. Reversing a graph derived from a reference tree tests whether the label format contains enough information. Reversing a graph predicted for a test sentence evaluates a process that first has to recover that information from the input. The shared-task results are strong enough to demonstrate that the intermediate representation can be learned and put to use. The metrics leave open which of the individual predictions would yield the greatest gain if improved.

What the ablations show

Dividing the classifier’s decision

The paper reports several development comparisons in prose, without a quantitative ablation table. The clearest comparison is between joint and divided prediction. The joint strategy makes the transition and label one classifier outcome. The divided strategy chooses the transition first and then uses the direction to choose a label classifier. For constituency arcs, the submitted strategy also separates the predictions for the different label components. The authors report that divided prediction helped on every dataset used in the task.

The result supports a particular design choice for this parser. Transition choice and labeling can benefit from conditioning on different features, and left and right arcs can have different signals. The assignment of roles, paths and levels in the constituency encoding gives the divided architecture further work to do. Its classifiers each handle a separate component, and a label only needs to be considered after an arc has been selected. This arrangement makes it possible to tune features for the relevant classification problem.

The paper gives the direction of the performance effect across the datasets. It leaves the size of each gain unspecified. In particular, the reported comparison does not decompose the gain into one share for separating transition from relation, another for splitting by direction and another for separating the components of a constituency label. The evidence concerns the prediction strategies the authors evaluated as working configurations.

Choosing simple heads or linguistically guided heads

The authors report that varying the search direction by phrase label improved accuracy for TüBa-D/Z. This gives specific evidence that the representation’s head choices affect parsing performance. A change in direction can change which word carries a constituent’s information. That can in turn change the dependency arcs, the sequences packed into their labels and the training transitions derived from those arcs. The reported outcome is an accuracy preference for category-sensitive direction in this setting.

Their comparison with more linguistically motivated head-finding rules gave no improvement in the trials they describe. The timing is part of the result’s interpretation. The alternative rules were tested late, and the authors emphasize that the development schedule left little time for careful optimization. They explicitly allow that a more thorough comparison could find a gain. The trials support using the simpler rules for the submitted setup and leave the broader value of linguistic head rules open.

The paired example graphs show another aspect of the same choice. A converter can preserve the original phrases while assigning an unexpected root word or keeping a local attachment where the official dependency version creates a non-local relation. That is a structural analysis of one example. It shows why a linguistically motivated dependency conversion and a reversible constituency encoding can differ across several decisions at once. Accuracy effects need a separate experiment because the graph comparison itself gives no measurement of how much these differences help or hinder learning.

Feature selection and changes to the encoding

The authors used forward and backward feature selection, beginning with a feature configuration extrapolated from earlier parsing experiments in several languages. Forward selection explores additions to the feature set, and backward selection explores removals. Optimizing a divided prediction strategy was more involved because the transition classifier and the direction-specific classifiers each needed attention. The constituency configuration extended that work to the distinct tasks of predicting roles, paths and attachment levels.

The encoding itself changed during development. The authors explain that time constraints prevented them from repeating the full optimization after each change. As a result, the final experiments show what the developed combinations could achieve, with some stages more thoroughly tuned than others. The article identifies potentially consequential variables and records the comparisons that influenced the submitted parser. It does not give independent estimates for changes to the encoding or for additions and removals of particular features.

The successful round trip on the reference trees is a separate analysis. It verifies that the graph representation can retain the information necessary to reconstruct the prepared trees. This is a meaningful structural check because an irreversible conversion would lose some distinctions before training began. The test results then show what is recovered when those graphs are inferred. Together these analyses distinguish a representation capable of carrying the reference answer from a parser capable of predicting it with some frequency.

Limitations

Limits the authors identify

The authors qualify their comparisons with earlier dependency scores because the datasets and punctuation conventions differ. In the constituency track they flag differing use of the grammatical functions supplied with the input. Their own system assigns those functions without taking the supplied values as input. Both points restrict the conclusions available from comparisons with another parser. A rank or score can be reported exactly as obtained while evidence about relative algorithm quality remains tied to the evaluation conditions.

They also emphasize how little time remained for experimenting with head rules. Introducing constituency support involved changes to the encoding as well as classifier tuning. There was no opportunity to restart the full optimization each time. The absence of an improvement from the more elaborate head rules is therefore a result of the reported development process. The paper presents more careful rule evaluation and other choices for encoding the inverse mapping as possible ways to improve the system.

Discontinuous constituency is an explicit open problem. The training and test phrase structures are prepared in a continuous, nested format. When an attachment error produces a discontinuous prediction, the system moves the affected constituents down so that it can emit legal brackets. This is a repair for the shared-task output. The authors suggest investigating the non-projective Covington algorithm or a pseudo-projective technique as ways to address genuine discontinuity in future work. The experiments themselves establish recovery of continuous constituency under the task representation.

The authors also define a purpose for their intermediate graphs that limits how they should be interpreted. The conversion is designed to retain phrase information and give the parser a learnable target. The official dependency annotation addresses linguistic dependencies directly. The punctuation root and the different treatment of the extracted modifier in the example follow from those separate objectives. A recovered intermediate arc should be read in light of the phrase structure it helps assemble.

Limits visible in the experimental setup

The strongest guarantee is about an exact transformation of reference data. A gold constituency tree can be converted and recovered in full on the prepared datasets. In ordinary parsing, each relevant decision must be supplied by a classifier. A wrong head can put a branch under the wrong word. A wrong category path can change its internal structure. A wrong attachment level can preserve its content and change its location. The paper’s round-trip result demonstrates information preservation, whereas the test scores measure the final product of these fallible decisions.

The metrics give limited access to those separate error sources. LAS combines the label and the head into a single token-level outcome. Constituency F-score combines precision and recall after the full reconstruction. The paper gives no breakdown by label component, by attachment level or by whether the post-processing repair intervened. The example makes such distinctions concrete, but it does not establish how typical its structures are among the test errors. The experiments therefore provide a system-level result and a mechanism for understanding possible failures, with individual failure rates left open.

The scope of grammatical function evaluation is also narrower than the scope of the output. The method can attach functions to edges that lead directly to words, and the parser predicts these functions in the authors’ setup. Those edges are excluded from the constituency score. As a result, the published F-score supports a claim about recovery under the evaluation’s constituent-label and function criterion. Accuracy on the excluded word-edge functions remains unmeasured by that score, even though the system produces them.

The data conditions define the setting in which the method was tested. Both corpora contain German newspaper text, the test part-of-speech tags are supplied at gold quality, and the classifiers are trained for each specific annotation target. Fine-grained tags also determine how training examples are partitioned. The results give no estimate for an input pipeline that supplies predicted tags, for another kind of German text or for reuse of one trained configuration across treebanks. Those are distinct questions from whether the same transition algorithm can be trained for several outputs.

The paper likewise gives the linear-time property of the chosen dependency algorithm without measuring the cost of the complete pipeline. Classification, projective conversion or phrase reconstruction, and repairs are separate parts of that pipeline. The increased number of feature sets in the constituency configuration is a concrete account of extra training and tuning work. How that translates into a time or resource difference remains unspecified.

Finally, the two German treebanks provide evidence of portability across annotation targets within the task. The previously raised question of whether parsing German is more difficult than parsing English remains unresolved by their work. The experiments vary the form of annotation and the treebank within one language. A comparison of languages would require evaluation conditions that make it possible to interpret score differences across them. The paper’s result is that both dependency and phrase annotation can be approached through local word-to-word construction in the tested setting.

What came after

German output in parsing and realization

One later citation comes from a study of a German surface realiser. A realiser works toward an overt sentence, whereas Hall and Nivre start from a sentence and recover syntactic structure. The later study’s stated subject is the relationship between human and automatic evaluation of the generated output. It places a citation to the parsing paper in a different evaluation problem, one concerned with assessing German text produced by a system. The specific role of the parser or of its reversible representation in that evaluation is unspecified. Correlating Human and Automatic Evaluation of a German Surface Realiser

Another citing study stays with German constituent parsing and asks about the knowledge sources available for the task. Its title identifies morphological richness and less-configurational syntax as part of the motivation. The question is close to choices made in Hall and Nivre’s experiments. A parser must decide what information to use when it selects a structure, and a head rule or input feature determines which distinctions can influence that choice. The later citation connects these investigations at the level of the parsing problem. Its stated scope leaves open whether it uses the complex dependency labels or evaluates the same head-selection rules. Knowledge Sources for Constituent Parsing of German

A different grammatical framework for data-driven parsing

A further citing work studies parsing with probabilistic linear context-free rewriting systems. Its stated approach gives the parsing problem a grammar-based formulation. Hall and Nivre’s constituency track instead formulates the immediate prediction problem as building a dependency graph and recovering phrases from its labels. The connection is between different ways of choosing a representation for data-driven parsing. The citation records that connection, while the specific use of Hall and Nivre’s method in the later work remains unspecified. Data-Driven Parsing using Probabilistic Linear Context-Free Rewriting Systems

The three citations place the paper alongside work on grammatical formalisms, on the information available to a German constituent parser and on evaluation of German sentence realization. The concrete result that carries across these settings is about representation. A transition system can predict word relations that serve as an intermediate structure, provided their labels preserve the information required by the intended output. In Hall and Nivre’s experiments, the reference trees show exactly what the encoding can retain, and the shared-task test scores show how much of the target structure the trained parser recovered.

Cite

Cite as Johan Hall and Joakim Nivre. 2008. A Dependency-Driven Parser for German Dependency and Constituency Representations. Proceedings of the Workshop on Parsing German.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{hall2008dependency,
  title = {{A Dependency-Driven Parser for German Dependency and Constituency Representations}},
  author = {Johan Hall and Joakim Nivre},
  booktitle = {Proceedings of the Workshop on Parsing German},
  year = {2008},
  doi = {10.3115/1621401.1621408},
  url = {https://doi.org/10.3115/1621401.1621408}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/hall-2008-dependency-driven-parser-german-dependency/