---
title: "Statistical Parsing of Tree Wrapping Grammars — Bladier 2020"
description: "Statistical parsing with Tree-Wrapping Grammar uses linked tree fragments and A* search to recover long-distance dependencies in English."
canonical: "https://research.elamur.ai/free/en/papers/bladier-2020-statistical-parsing-tree-wrapping-grammars/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bladier-2020-statistical-parsing-tree-wrapping-grammars/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Statistical Parsing of Tree Wrapping Grammars

# Statistical Parsing of Tree Wrapping Grammars

Paper · 2020 · Tatiana Bladier, Jakub Waszczuk and Laura Kallmeyer

**Authors:** [Tatiana Bladier](https://md.research.elamur.ai/free/en/authors/tatiana-bladier/), [Jakub Waszczuk](https://md.research.elamur.ai/free/en/authors/jakub-waszczuk/) and [Laura Kallmeyer](https://md.research.elamur.ai/free/en/authors/laura-kallmeyer/) · **Year:** 2020 · **Venue:** Proceedings of the 28th International Conference on Computational Linguistics · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 28th International Conference on Computational Linguistics · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.coling-main.595/)
- [PDF](https://aclanthology.org/2020.coling-main.595.pdf)
- [DOI 10.18653/v1/2020.coling-main.595](https://doi.org/10.18653/v1/2020.coling-main.595)

## Summary

A phrase can appear near the beginning of a sentence even though it belongs with a predicate much farther along. In a question about what someone thinks another person remembers, the initial question word belongs with the predicate for remembering. A parser has to recover that connection while accounting for the clause about thinking in between. The paper presents a statistical approach to [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) with Tree-Wrapping Grammar, a formalism that can keep the displaced phrase and its predicate together in an elementary tree before placing them at separate sites in the sentence structure.

The authors extract a grammar for [English](https://md.research.elamur.ai/free/en/topics/english/) from RRGbank and the English portion of RRGparbank, collections of trees annotated for Role and Reference Grammar. Ordinary fragments account for complements and modifiers. A special kind of fragment uses a dominance edge to link pieces that will be placed apart. At parsing time, a neural supertagger proposes elementary trees for the words, and a dependency component scores possible head relationships. An A* search then finds the best-weighted derivation that can be assembled from the candidates under the grammar’s rules.

On the English test split, the resulting parser, ParTAGe, achieved labeled constituency F1 of 85.26, compared with 84.56 for Discoparset and 80.96 for DiscoDOP in the comparison without BERT. ParTAGe recovered 22 of the 27 annotated long-distance dependencies on that split, compared with 14 for Discoparset and 13 for DiscoDOP. The dependency evaluation credited the connection between the displaced element and its predicate even when the surrounding analysis was only partially correct. The counts concern a rare construction in the experimental data, so they carry more information about these particular test cases than about English parsing in general.

Giving ParTAGe the reference part-of-speech tags improved its reported constituency scores but reduced both its coverage and the number of long-distance dependencies it recovered. Some wrong tags had led to precisely the errors the authors hoped to prevent. Forcing the right tags also removed elementary-tree candidates, which exposed another source of failure. The experiments show how an explicit grammatical representation can support the recovery of a distant relation, and how much that recovery still depends on the choices available to the parser.

## Deep dive: Statistical Parsing of Tree Wrapping Grammars

Statistical parsing with Tree-Wrapping Grammar uses linked tree fragments and A* search to recover long-distance dependencies in English. · about 34 minutes to read

**In this deep dive**

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

### The problem and its context

#### When a phrase and its predicate come apart

Constituency parsing describes which words belong together in phrases and how those phrases form larger units. In a simple case, the words belonging to a constituent are next to one another. A parser can represent the constituent as a subtree covering a single uninterrupted stretch of the sentence. In the constructions that interest the authors, words related within the grammatical analysis can be separated by material that belongs elsewhere in that analysis. A constituent whose words occupy separated stretches is discontinuous. A long-distance dependency is the relation the parser must recover across such separation in the cases examined here.

The paper illustrates the problem with a question that begins with *what*, passes through *think*, and ends with *remember*. Recognizing the first word as interrogative leaves the question of where it belongs open. The parse must associate it with the lower predicate while preserving the intervening structure. Treating the word as an argument of the higher verb would give a different grammatical analysis, even if many of the surrounding constituents were correct. A general constituency score can therefore reward a largely sound tree while telling the reader little about whether the parser found the connection that motivated the grammar.

The authors identify long-distance relativization, long-distance wh-movement, and long-distance topicalization in their data. In relativization, the displaced or linked element is part of a relative-clause construction. In a wh-question, it is the phrase that asks for a value, reason, or other missing piece of information. In topicalization, a phrase is brought forward as a topic while retaining a structural relationship to material later in the sentence. The paper treats these as cases in which English can place a phrase away from its usual position with respect to its head. It also emphasizes that languages differ in the constructions that produce long-distance dependencies.

How often those constructions appear also depends on how a treebank analyzes sentences. The authors point to the treatment of operators such as modals in Role and Reference Grammar, abbreviated RRG. In the RRG analysis used here, such operators do not embed constituents labeled CORE. The paper contrasts this treatment with analyses such as those in the Penn Treebank. An embedded structure in one annotation convention can therefore yield a different account of what counts as a displacement. Grammar extraction and evaluation both inherit decisions of this kind from the [treebanks](https://md.research.elamur.ai/free/en/topics/treebanks/).

#### What a tree-rewriting grammar contributes

Tree-Wrapping Grammar, or TWG, builds a sentence tree by combining elementary trees. An elementary tree is a reusable fragment of structure. It can describe more than a category label alone, including, for instance, a position at which another fragment can be inserted. Talking about a derivation means talking about the sequence of combinations that builds the finished analysis. The derived tree is the structural result of those combinations. The distinction matters because ParTAGe scores and searches for derivations, while the main constituency measure evaluates the trees they produce.

TWG is related to Tree-Adjoining Grammar, or TAG. It inherits operations that the authors use for ordinary combinations. Substitution fills a designated leaf with a tree, as when a complement is placed in a slot. Sister adjunction adds a daughter under an internal node and can be used to attach a modifier. TWG also permits tree-wrapping substitution. This operation can take a fragment that records a relation between an upper and a lower piece and combine those pieces with a target at separate positions. The connecting edge specifies dominance, meaning that the upper point is above the lower one in the resulting tree, with intervening structure allowed.

Keeping the pieces in one elementary tree gives the analysis a way to state the relation before it inserts the material that separates them. In the question illustrated by the authors, the intended relationship between the fronted interrogative and the lower predicate is part of the grammatical construction. Material belonging to the higher clause can be accommodated when the fragment is combined with its target. A system that predicts a discontinuous tree by another route may recover the same relationship. The difference is that TWG makes that relationship part of an explicit inventory of fragments and combination operations.

The authors emphasize that wrapping can be non-local in a particular grammatical sense. The target leaf and target root involved in the operation can originate in different elementary trees. A wrapping operation may therefore apply to a target that has already been assembled from several fragments. The formalism also permits multiple wrapping substitutions to extend across particular nodes. The paper cites these properties when explaining why TWG has more formal expressive power than TAG. The formal claim concerns what the grammar can represent. The empirical question is whether the parser can find the intended representations in annotated sentences.

#### The work the authors build on

The paper traces TWG to an effort to formalize Role and Reference Grammar, which was developed with the analysis of different languages in view. It also identifies antecedents for the wrapping operation in other tree-rewriting formalisms. D-Tree Grammars had an operation called subsertion, and D-Tree Substitution Grammars had generalized substitution. The authors knew of no statistical parsing approach for either formalism. They do cite earlier symbolic parsing for TWG with features on edges. That work supplied part of the treatment of valid combinations that the present parser needed to perform.

A second line of work concerned statistical TAG parsing. The authors adapt a pipeline that already combined supertagging with A* search. A supertag identifies a relatively detailed elementary tree associated with a word. Assigning candidates at the word level gives the parser evidence about the structural pieces likely to be required before it starts assembling a sentence. Dependency predictions provide evidence about which pieces should connect. TWG adds a complication for the search because a partial analysis may have several unresolved gaps, each with its own cost bookkeeping.

The third antecedent is an algorithm that extracts TAG fragments from bracketed trees. The authors adapt its top-down decomposition for ordinary initial trees and sister-adjoining trees. They add a procedure that reads dependency markings from the RRG annotations and extracts a fragment with a dominance edge. Thus the paper addresses a practical problem at both ends. The extraction procedure determines what grammatical pieces the parser can use, and the statistical parser determines how to select and combine those pieces for a new sentence.

### The method, step by step

The process begins with annotated trees and ends with a scored tree for an input sentence. Grammar extraction is an offline step. It determines which fragments exist and where their operations apply. For an input sentence, the prediction components provide scores for elementary-tree candidates and links between words. The parser then tests which proposed pieces can participate in a legal analysis. The same search handles ordinary combinations and the staged operation needed for a long-distance dependency.

From annotated trees to a scored TWG parse The steps in order.

#### Prepare the trees for extraction

The first task is to distinguish the annotated long-distance dependencies from other reasons that branches cross when a tree is drawn over the words in sentence order. RRGbank and RRGparbank also have crossings involving operators and modifiers. An extractor that treated every crossing as evidence of a distant syntactic relation would risk assigning the wrapping operation to material for which the authors intend a different analysis. The paper therefore applies a decrossing procedure and records changes so the transformation can be reversed.

For a locally discontinuous constituent, the procedure can split its parts into siblings under the original constituent’s mother. The appendix illustrates how a German verb and particle can occur separately yet belong to the same nucleus, designated NUC. Once the parts have been separated at that point in the tree, they can be handled by the subsequent extraction steps. The example explains the preprocessing rule. The parsing experiments themselves use English.

If a tree still contains crossing branches, the algorithm works through it from the top down and from left to right. It looks for particular strings in subtree root labels, including `OP-`, `-PERI`, `-TNS`, `CDP`, and `VOC`. For a candidate subtree, the extractor looks under its neighboring left sibling for a node whose rightmost word is immediately before the candidate’s first word. It chooses the highest qualifying node. If the two roots are under different mothers, the candidate subtree is moved to the qualifying node’s mother. When there is no left sibling, the procedure looks to the right under the corresponding conditions. The appendix defines left and right using the ordering of the first leaves dominated by the relevant nodes.

The change is local to a selected subtree. After it, the extractor checks the tree again for crossings and continues to the next candidate as needed. The use of label patterns makes the procedure dependent on the annotation scheme. Its role is to make an RRG tree suitable for decomposition while allowing the later evaluation to distinguish the branches involved in long-distance relations from those introduced by other annotation choices.

#### Extract the distant relation as a unit

The extractor next looks for indexed annotations linking the relevant parts of a long-distance dependency. The main text mentions `PRED-ID` and `NUC-ID`. The appendix also gives a `REF` marking and spells the scanned patterns without the internal hyphens in `PREDID` and `NUCID`. The index is what allows separated parts to be recognized as belonging together. This stage starts with a relation the annotators have already identified. At parsing time, the system has to recover such a relation from its proposed fragments and links.

The procedure finds the smallest subtree containing the linked parts and extracts the relevant pieces into a single tree with a dominance edge, or d-edge. The upper point of this edge represents the position that will merge with the target’s root. The lower part is the piece that will take the place of a marked leaf in the target. The remainder of the original subtree supplies the target structure. A copy of the mother node and a substitution slot preserve the locations required to recombine the pieces.

The authors illustrate extraction with a construction in which *what* belongs with *to say*, and *trying* supplies material for the target. In the annotated sentence tree, the related pieces occur apart. In the extracted grammar, the fragment for *what* and *to say* retains a dominance link. The target has the place where the lower portion of that fragment can go and the root where the upper point can merge. The decomposition thus records the long-distance relation in one piece while locating the intervening material in another.

At combination time, ordinary substitution would fill a leaf and finish at that site. Wrapping has a second condition to satisfy. The target must contain a suitable leaf for the lower piece, and its root must be compatible with the upper side of the same d-edge fragment. The target can acquire more structure between these two steps. This allows the relation to extend through a derived tree whose root and substitution site come from different elementary pieces.

#### Extract complements, modifiers, and anchors

After extracting the marked relations, the procedure puts the resulting fragments and the pruned tree on an agenda. In this part of the method, an agenda is simply a collection of chunks awaiting decomposition. A tree without a long-distance fragment enters the agenda whole. The extractor applies the same head and modifier decisions to the chunks regardless of whether the preceding step found an indexed dependency.

Manually specified percolation tables guide these decisions. For the children of a node, the tables distinguish the head from complements and modifiers according to the labels in the annotation. The head provides the center around which the current fragment is retained. A complement can be separated as an initial tree, leaving a slot at the cut in the host structure. When the parser later substitutes at that slot, the complement tree supplies the missing material.

For a modifier, the extractor copies its parent category into the root of the newly separated fragment and marks that root with an asterisk. This mark identifies the fragment as a sister-adjoining tree. When that fragment is used, its material can be added under a compatible internal node as a new daughter. The root label describes the kind of structure the modifier can adjoin to. The distinction between complement and modifier, made using the tables during extraction, consequently produces different operations during parsing.

Starting at the top, the decomposition proceeds recursively downward until every elementary tree contains a single anchor site. An anchor site ties a tree template to a word. Once the fragments are represented as templates, the statistical component can treat the template appropriate to a particular word occurrence as its supertag. A supertag additionally determines the word’s part-of-speech tag. This relationship makes it possible to train a part-of-speech predictor on related representations and, in a separate experiment, to constrain which supertags the parser may consider.

The paper identifies the distribution of the ParTAGe parser, the TWG extraction code, the percolation tables, and the experiment recipes. The tables matter for reproducing the grammar because they encode judgments about how to decompose an RRG tree. The parser operates on the resulting elementary-tree inventory, while the extraction code determines which inventory the annotated data will yield.

#### Score candidate trees and their connections

The authors use word vectors from fastText as the input. A word vector represents the word as a sequence of numerical features. A shared bidirectional long short-term memory network, or BiLSTM, reads the sentence and produces a contextual representation for each position. Its bidirectional calculation lets each representation draw on the sequence to either side. The paper specifies a 2-layer transducer for this shared stage. The fastText input comes from the work on [word vectors with subword information](https://md.research.elamur.ai/free/en/papers/bojanowski-2017-enriching-word-vectors-subword-information/).

The shared contextual representation feeds separate computations for elementary-tree selection and for head selection. Each has its own additional 2-layer bidirectional transducer. The paper writes the supertag branch as follows.

```
(h₁ˢᵘᵖ, …, hₙˢᵘᵖ) = BiLSTMₛ(h₁, …, hₙ)
```

Here `n` is the sentence length in words, and subscripts `1` through `n` identify successive positions. Each `h` without a superscript is the shared contextual vector at that position. The superscript `sup` identifies the vector specialized for supertagging. `BiLSTMₛ` is the bidirectional transducer for this branch. The parentheses gather the input and output sequences, the ellipsis represents the intervening positions, and the equality states which output sequence the transducer produces.

```
(h₁ᵈᵉᵖ, …, hₙᵈᵉᵖ) = BiLSTM_d(h₁, …, hₙ)
```

Here `h₁` through `hₙ` are again the shared vectors in word order, with `n` the sentence length. The superscript `dep` marks the new vectors specialized for dependency prediction. `BiLSTM_d` is the distinct bidirectional transducer for that task. The ellipsis continues the sequence through all positions, and the equality identifies the new vectors with the transducer’s output. This branch supplies the evidence used to score attachment to a head in [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/).

The part-of-speech and supertag predictions both use the specialized vectors from the supertag branch. The supertag distribution is given by the following expression.

```
Pr(sup(i)) = softmax(Linearₛ(hᵢˢᵘᵖ))
```

`i` is the word position, and `hᵢˢᵘᵖ` is the supertag-specific vector at that position. `Linearₛ` produces a score for each candidate supertag, and `softmax` converts the scores into a distribution over the alternatives. `sup(i)` denotes the supertag choice for the word at `i`, and `Pr` denotes the resulting probabilities. The equality connects the distribution to the two transformations used to obtain it.

```
Pr(pos(i)) = softmax(Linearₚ(hᵢˢᵘᵖ))
```

Here `pos(i)` is the part-of-speech choice at position `i`, and `Pr` gives its probability distribution. The input `hᵢˢᵘᵖ` is the same task-specific vector used for the elementary-tree prediction. `Linearₚ` assigns scores to part-of-speech categories, and `softmax` normalizes those scores into probabilities. The equality specifies the distribution computed by the branch. The authors describe [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) as auxiliary because the selected elementary tree already determines the category.

For head selection, the parser needs to distinguish the features that make a word a plausible attachment site from the features that make it likely to depend on another word. Separate feed-forward networks produce those two views of the dependency-specific vector.

```
hdᵢ = FF_hd(hᵢᵈᵉᵖ)
```

`i` identifies the word, and `hᵢᵈᵉᵖ` is its dependency-specific vector. `FF_hd` is the feed-forward network used to make a head representation. `hdᵢ` names that representation, and the equality defines it as the output of the network.

```
dpᵢ = FF_dp(hᵢᵈᵉᵖ)
```

`i` again identifies the word and `hᵢᵈᵉᵖ` its vector from the dependency branch. `FF_dp` is the feed-forward network for the dependent role. Its output is `dpᵢ`, the vector used to evaluate the word as a dependent, as indicated by the equality.

These vectors enter a biaffine score associated with a proposed link. The paper uses the approach from [Deep Biaffine Attention for Neural Dependency Parsing](https://md.research.elamur.ai/free/en/papers/dozat-2016-deep-biaffine-attention-neural-dependency/).

```
φ(i, j) = dpᵢᵀ M hdⱼ + bᵀ hdⱼ
```

`φ(i, j)` is the score of choosing the word at position `j` as head of the word at position `i`. `dpᵢ` is the dependent vector for `i`, and `hdⱼ` is the head vector for `j`. `M` is a matrix setting how the dependent and head features interact, while `b` is a bias vector giving a contribution from the head features. The superscript `ᵀ` transposes a vector, juxtaposition denotes multiplication, and `+` adds the interaction and bias terms. The equality defines the total score. The paper further specifies that `hd₀`, the head representation for the dummy root indexed by `0`, is a parameter of the architecture.

These prediction stages supply evidence at different levels. The supertagger favors a particular piece of local grammatical structure for a word. The dependency scorer favors particular word-to-word links. Selecting the most favored supertag independently at each position could leave a collection of fragments that cannot be assembled under the grammar. The search uses the scores while requiring a derivation that satisfies the rules.

#### Assemble a sentence with weighted deductions

A chart stores analyses of parts of the input so they can be reused in several possible larger analyses. An item records the structure recognized so far, the positions over which it extends, and pending wrapping gaps. An active item has a dot in a rule showing how far recognition has proceeded. A completed item has finished the local rule and can participate in another deduction. A completed item can still have outstanding wrapping work. In particular, finishing the lower piece of a d-edge tree makes that piece available to start wrapping.

Each item has a pair of weights. The inside weight is the cost assigned to the derivation already incorporated in the item. A separate map records weight information for each outstanding gap. Separating those quantities lets the parser defer the contribution of a wrapping piece until the matching operation, while still carrying information about it during search. The map is keyed by the starting position of the corresponding gap. The rules maintain distinct keys for the maps they join.

The following notation follows the paper’s deduction rules, with an arrow between premises and their result. In the initialization rule, the left side of that implication is a condition on a grammar rule and a position.

```
N → α, i ∈ {0, …, n − 1} ⟹ (0, ∅) : (N → •α, i, i, [])
```

`N → α` is a rule with grammar node `N` on the left and a sequence `α` on the right. The position `i` ranges over the set of input boundaries indicated by `∈` and the braces, from `0` through `n − 1`, with `n` the sentence length and `−` subtraction. The ellipsis stands for the intervening boundaries. `⟹` yields a chart item, and the colon attaches the weight pair to that item. The first `0` in the pair is the initial inside weight, and `∅` is the empty weight map. The two occurrences of `i` mark an empty span starting there, `[]` is an empty gap list, and `•` means that none of `α` has been recognized.

```
(w, m) : (N → α • M β, i, j, Γ), ℓ(M) = sⱼ₊₁
⟹ (w, m) : (N → α M • β, i, j + 1, Γ)
```

Here `w` is the current inside weight, `m` is the gap-weight map, and the colon associates them with the item. The rule arrow `→` leads from `N` to its right-hand side. In that sequence, `α` has already been recognized, `M` is the next node, and `β` is what follows it. The dot `•` tracks progress. The span begins at `i` and currently ends at `j`, and `Γ` is its gap list. The label function `ℓ` gives the label of `M`. The equality requires it to match `sⱼ₊₁`, the next input word, with `+ 1` advancing to the next position. `⟹` produces the item with the dot and span end advanced, leaving the weights and gaps as they were. This is the scan rule.

```
(w, m) : (N → α •, i, j, Γ)
⟹ (w, m) : (N, i, j, Γ, ws?)
ws? = yes ⇔ dnode(N)
```

The pair `w, m` again contains the inside weight and gap map, with the colon marking the item they belong to. The rule arrow `→` connects node `N` to its right-hand sequence `α`, and the final dot `•` indicates that sequence is finished. Positions `i` and `j` bound the item, and `Γ` is the gap list. The implication `⟹` produces a deactivated item with `N` in place of the dotted rule. Its flag `ws?` has the value `yes` exactly when, as indicated by `⇔`, `dnode(N)` holds. This predicate marks `N` as the node at the lower end of a dominance edge. Otherwise the flag has value `no`.

```
(w₁, m₁) : (N → α • M β, i, j, Γ₁), (w₂, m₂) : (M, j, k, Γ₂, no)
⟹ (w₁ + w₂, m₁ ⊕ m₂) : (N → α M • β, i, k, Γ₁ ⊕ Γ₂)
```

Here the subscripts distinguish the premises, and `w` and `m` name each premise’s inside weight and map. The colons attach those weights to the corresponding items. In the active rule for `N`, `α` precedes the dot, `M` is the required node, and `β` follows it. The arrow `→` introduces the right-hand side. The spans meet at `j`, with `i` as the left end and `k` as the combined right end. The completed `M` has its wrapping flag set to `no`. The implication `⟹` advances `•` past `M`. The `+` adds the inside weights. The operator `⊕` joins maps when applied to `m₁` and `m₂`, and concatenates gap lists when applied to `Γ₁` and `Γ₂`. This completes a piece of an elementary tree where no substitution or adjunction is needed.

```
(w₁, m₁) : (N → α • M β, i, j, Γ₁), (w₂, m₂) : (R, j, k, Γ₂, no)
leaf(M), root(R) ∧ ¬sister(R), ℓ(M) = ℓ(R)
⟹ (w₁ + w₂ + ω(R, N), m₁ ⊕ m₂) : (N → α M • β, i, k, Γ₁ ⊕ Γ₂)
```

In this rule, `N → α • M β` again identifies an active rule awaiting `M` between `α` and `β`. The dot advances when the site has been filled. The completed fragment is rooted at `R` and carries the flag `no`. The predicates `leaf`, `root`, and `sister` test a substitution leaf, a root, and sister-adjoining status, respectively. The conjunction `∧` and negation `¬` require a root that lacks the sister-adjoining mark. The equality of `ℓ(M)` and `ℓ(R)` tests whether the node labels match. `i`, `j`, and `k` delimit the two adjacent spans. `w₁` and `w₂` are the inside weights, `m₁` and `m₂` the gap maps, and `Γ₁` and `Γ₂` the gap lists. The colons pair weights with items, and `⟹` shows the resulting item. The new inside weight adds the old weights and the combination weight `ω(R, N)`. Here and in the other combination rules, `ω` is the weight for connecting the indicated fragments. The operator `⊕` unions the maps and concatenates the gap lists.

```
(w₁, m₁) : (N → α • β, i, j, Γ₁), (w₂, m₂) : (M, j, k, Γ₂, no)
ℓ(M) = ℓ(N) ∧ sister(M), ¬sister(N)
⟹ (w₁ + w₂ + ω(M, N), m₁ ⊕ m₂) : (N → α • β, i, k, Γ₁ ⊕ Γ₂)
```

Here the active node is `N`, the arrow `→` introduces its children, and `•` lies between the recognized sequence `α` and the remaining sequence `β`. The completed modifier is `M`, with wrapping flag `no`. `ℓ` gives a label, and the equality tests compatibility of `M` and `N`. `∧` joins conditions. The predicate `sister` tests the sister-adjoining mark and `¬` negates it, so the incoming tree is marked and the receiving node lacks that mark. Positions `i`, `j`, and `k` mark the start, join, and end. The weights `w₁, w₂` and maps `m₁, m₂` are attached to the items by colons. The implication `⟹` extends the span and adds both inside weights and `ω(M, N)`, the combination weight for the modifier and its host. `⊕` joins the maps and concatenates the gap lists `Γ₁, Γ₂`. Sister adjunction leaves the dot in its original position because it adds a daughter without consuming a slot already listed in the receiving rule.

#### Start wrapping and finish it later

A partial wrapping deduction begins at a substitution slot. A piece at the lower end of a dominance edge can fill that slot provisionally when its label matches. This operation creates an obligation at the target root. The parser must remember the span and label of the lower piece so it can identify the matching completion later. A list of such obligations can travel with a partial derivation even as other elementary trees are combined into it.

```
(w₁, m₁) : (N → α • M β, i, j, Γ₁), (w₂, m₂) : (D, j, k, Γ₂, yes)
leaf(M), ℓ(M) = ℓ(D)
⟹ (w₁, m₁[j ⇒ w₂ + sum(m₂) + A(D)]) : (N → α M • β, i, k, Γ₁ ⊕ [(j, k, ℓ(D))])
```

`N` is the active rule’s node, `→` introduces its right-hand side, and the dot `•` moves from before to after the slot `M` between sequences `α` and `β`. The `leaf` condition identifies the slot as a leaf. `D` is the completed lower piece, flagged `yes` for wrapping. The equality requires the label `ℓ(M)` to match `ℓ(D)`. The positions `i`, `j`, and `k` delimit the host and incoming spans. The inside weights are `w₁` and `w₂`, the weight maps are `m₁` and `m₂`, and `Γ₁` and `Γ₂` are the gap lists. The colons attach the weight pairs, and `⟹` introduces the output. Its inside weight remains `w₁`. The notation `m₁[j ⇒ …]` means that the map records a new value under key `j`. The added quantities are the lower item’s inside weight `w₂`, the sum of values in its map `sum(m₂)`, and the term `A(D)` that the rule assigns for `D`. The paper displays this last term in the rule without giving its own expansion. The operator `⊕` appends a list with the single new gap `(j, k, ℓ(D))`, identified by start, end, and label.

Once the target has been completed up to an appropriate root, another deduction can discharge the obligation. Its conditions pair the pending gap with the right lower piece and test the root against the label of the parent above the dominance edge. This is where the two sites of a single wrapping operation are brought together.

```
(w₁, m₁) : (R, i, j, Γ₁ ⊕ [(f₁, f₂, y)] ⊕ Γ₂, ws?),
(w₂, m₂) : (D, f₁, f₂, Γ₃, yes)
root(R) ∧ y = ℓ(D), ℓ(parent(D)) = ℓ(R), ¬sister(R)
⟹ (w₁ + w₂ + ω(R, D), m₁[f₁ ⇒ ⊥] ⊕ m₂) : (D, i, j, Γ₁ ⊕ Γ₃ ⊕ Γ₂, no)
```

`R` is the target root, with `i` and `j` bounding its span. The `root` test requires a root, while `¬sister(R)` requires the absence of the sister-adjoining mark. `ws?` stands for the target item’s wrapping flag. Its selected gap begins at `f₁`, ends at `f₂`, and has label `y`. `D` is a lower piece with that same span and wrapping flag `yes`. The label function is `ℓ`, and `parent(D)` is the node above `D` across the dominance edge. The equalities test the gap label against `D` and the parent label against `R`. The symbol `∧` joins conditions. `Γ₁` and `Γ₂` are the gaps before and after the selected one, and `Γ₃` is the list carried by `D`. The weights `w₁, w₂` and maps `m₁, m₂` belong to the items after the colons. The implication `⟹` produces the completed wrapping item over the target span. The `+` operations incorporate the two inside weights and `ω(R, D)`, the weight for the wrapping combination. The map update with `⇒ ⊥` removes the entry for `f₁`. The `⊕` operations unite the remaining map with `m₂` and place the lower piece’s gap list where the discharged gap had been. The flag `no` prevents treating the resulting item as a lower piece still awaiting this wrap.

The two deductions give a concrete reason for storing gap weights individually. Completing a wrap can resolve one gap while leaving others pending. An aggregate number would not by itself identify the contribution to remove. The map uses the start of each gap as the identifier, so the completion rule can remove exactly the value associated with the wrapping it just finished. The authors also adapt the implementation’s indexes to retrieve the relevant chart items for the new deductions.

#### Decide what to search next

A* search uses both the work already accounted for and an estimate of the work remaining. The paper’s heuristic considers the minimum cost of scanning the words outside the current span. It must also account for words in the item’s outstanding gaps, since even a span that covers much of the sentence can contain unfinished wrapping. The authors therefore include the sum of the weights recorded in the gap map when applying this generalization of the earlier TAG heuristic.

The paper describes the heuristic as admissible by construction. Its estimate is a lower bound on the cost still required. It also reports checking monotonicity at run time. In this setting, monotonicity means that moving through a deduction does not improve the estimated total cost simply because the same unfinished work has been represented differently. These properties allow the first complete derivation found to be the one with the best weight under the parser’s scoring and candidate set. The guarantee is about the search objective. Agreement with the linguists’ trees depends on the grammar, the scores, and the alternatives available to search.

### Experiments and results

#### The data and what the comparison measures

The authors use gold and silver annotations from RRGbank and the English part of RRGparbank. Gold means the annotations were approved by at least two annotators. Silver means one linguist annotated the item. These categories describe annotation review. The experiment with gold part-of-speech tags is a separate condition in which the parser receives the reference categories for the words.

The data contain 7656 sentences, with a reported average sentence length of 10.97. The authors took 10 % of the initial training set for development. The resulting splits have 4960 training trees, 551 development trees, and 2145 test trees. The paper reports 46 constituents with long-distance dependencies in training, 5 in development, and 27 in test. Its rate of 0,11 % measures the share of tokens, including punctuation, that were displaced to form a long-distance dependency in the experimental data. The authors mention a rate of 0,16 % reported for French data in earlier work. Those figures describe the respective annotated datasets.

The extracted grammar inventory contains 3125 supertags, of which 1858 occur once. The authors report 1527 initial-tree templates, 1549 sister-adjoining templates, and 49 d-edge templates. These are inventory statistics, whereas the split counts refer to occurrences of annotated relations in trees. A d-edge template is a reusable structure. A long-distance dependency on the test split is an individual instance whose recovery is evaluated. The paper does not provide a breakdown of what fraction of test relations use templates that are rare in training.

DiscoDOP and Discoparset provide the comparison systems. DiscoDOP uses discontinuous data-oriented parsing, and Discoparset uses a transition-based approach to discontinuous constituency parsing. For these systems, the authors represented the annotated long-distance dependencies with crossing branches and inspected the predicted trees for those connections. For ParTAGe, they checked whether the predicted supertags and dependencies indicated substitution of the long-distance element into the appropriate predicate’s elementary tree. In both cases, the connection between the fronted element and its predicate was enough for credit, even when the parse handled part of the surrounding structure differently from the annotation.

The overall constituency evaluation uses parameters distributed with DiscoDOP. Labeled F1 summarizes the precision and recall of labeled constituents. An exactly matching parse is a stricter outcome because the evaluated tree has to agree with the reference throughout. The authors also count how many sentences receive parses and report part-of-speech accuracies. For ParTAGe they include supertagging accuracy and unlabeled attachment score. The latter measures whether a word receives the correct head without requiring a dependency label. Those intermediate measures help place the final scores in context.

#### Overall constituency results

The main comparison uses the runs without BERT. On the development split, DiscoDOP obtained labeled F1 of 79.26, Discoparset 83.57, and ParTAGe 85.26. On test, the corresponding scores were 80.96 for DiscoDOP, 84.56 for Discoparset, and 85.26 for ParTAGe. These runs returned parses for all 551 development sentences and all 2145 test sentences. Coverage is therefore the same across the systems in this comparison.

Labeled constituency F1 on the English RRG test split ParTAGe has the highest labeled F1 among the runs without BERT.

**The numbers**

| System or setting | labeled F1 |
| --- | --- |
| DiscoDOP | 80.96 |
| Discoparset | 84.56 |
| ParTAGe (this paper) | 85.26 |

Exact agreement gives a different ordering among the comparison systems. On development, the reported exact-match scores are 29.04 for DiscoDOP, 28.68 for Discoparset, and 36.12 for ParTAGe. On test, DiscoDOP obtained 32.87, Discoparset 28.30, and ParTAGe 38.32. Discoparset’s higher constituent F1 relative to DiscoDOP thus accompanies a lower exact-match score on each split. Partial agreement on many constituents and full agreement on an entire tree are distinct outcomes. ParTAGe leads on both measures in this group of runs.

Exact parse matches on the English RRG test split ParTAGe matches the reference trees most often among the runs without BERT.

**The numbers**

| System or setting | exact match % |
| --- | --- |
| Discoparset | 28.30 |
| DiscoDOP | 32.87 |
| ParTAGe (this paper) | 38.32 |

On development, part-of-speech accuracy was 92.02 for DiscoDOP, 94.24 for Discoparset, and 94.63 for ParTAGe. On test, the respective scores were 93.25, 94.92, and 95.07. ParTAGe achieved unlabeled attachment scores of 87.74 on development and 87.67 on test. Its supertagging accuracies were 74.25 on development and 75.81 on test. The paper supplies no corresponding supertagging or attachment scores for the competing systems in this comparison. Those ParTAGe scores describe the pipeline’s intermediate predictions, alongside the accuracy of the final tree.

The paper also annotates the Discoparset figures with gains from adding BERT. It describes them as relative gains. For development it gives +3.04 for part-of-speech accuracy, +8.89 for exact matches, and +6.83 for labeled F1. For test it gives +2.69 for part-of-speech accuracy, +13.19 for exact matches, and +6.39 for labeled F1. The main Discoparset scores above are the figures alongside which those gains are printed. Neither DiscoDOP nor ParTAGe has a corresponding run with [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/).

#### Recovery of long-distance dependencies

On the test split, ParTAGe recovered 22 of the 27 annotated long-distance connections, with 0 false positives and 5 false negatives. Discoparset recovered 14, with 0 false positives and 13 false negatives. DiscoDOP recovered 13, with 7 false positives and 14 false negatives. A true positive is a credited connection in the annotation, a false positive is a predicted connection without a matching reference relation, and a false negative is an annotated relation that the parser misses.

Correct long-distance dependency predictions on the English RRG test split ParTAGe with predicted tags recovers the most annotated connections.

**The numbers**

| System or setting | true positives |
| --- | --- |
| DiscoDOP | 13 |
| Discoparset | 14 |
| ParTAGe with gold POS | 18 |
| ParTAGe with predicted POS (this paper) | 22 |

The true-positive count is only one side of the comparison. DiscoDOP and Discoparset recovered similar numbers of annotated connections, but DiscoDOP also produced spurious ones. With predicted tags, ParTAGe recovered more reference connections than either baseline and recorded no spurious ones on this test. The count is based on a criterion targeted to the predicate and fronted element. It gives a clearer view of that relation than the full-tree measure while leaving questions about the other parts of each construction to the constituency evaluation.

The authors’ strongest direct result is therefore the joint pattern in the main run. ParTAGe had the highest labeled constituency F1 in the comparison without BERT, returned a tree for every test sentence, and recovered the most test dependencies under the paper’s connection criterion. The dependency test gives the special wrapping analysis a more direct assessment than the aggregate F1 figure. It still measures the complete parsing system, including what the extractor made available and what the word-level predictions favored.

### What the ablations show

#### Giving the parser the reference categories

The experiment with gold part-of-speech tags addresses a specific hypothesis from the error analysis. If wrong categories can make a long-distance construction look like an ordinary construction of a different kind, supplying the correct categories may help the parser keep the appropriate reading available. The intervention constrains the elementary trees because their supertags determine their parts of speech. It therefore changes the alternatives the grammar can use during search, as well as giving the parser information about the word categories.

The gold-tag run reports part-of-speech accuracy of 100.00 on both development and test. Supertagging accuracy increases from 74.25 to 77.50 on development and from 75.81 to 77.52 on test. Unlabeled attachment score moves from 87.74 to 85.13 on development and from 87.67 to 84.64 on test. Performance thus moves in different directions across the two intermediate predictions. Better knowledge of word categories makes the reference supertag more likely to be selected by the reported measure, while the head predictions in this condition agree less frequently with their reference.

The constituency figures also change. The reported labeled F1 with gold tags is 85.54 on development and 85.84 on test. Exact match is 38.64 on development and 38.73 on test. Coverage falls to 546 parsed sentences on development and 2120 on test. The paper attributes the lost parses to restrictions on the available supertags. A correct part-of-speech label can remove an otherwise usable fragment while leaving no complete derivation from the remaining candidates. The coverage counts should accompany the F1 and exact-match figures when comparing this run with the ordinary one.

On the test dependencies, the gold-tag condition recorded 18 true positives, 0 false positives, and 9 false negatives. It fixed some of the category-driven mistakes that motivated the experiment, while introducing new errors once the candidates were restricted. The ordinary parser recovered 22 and missed 5 on the same measure. The experiment therefore supports the authors’ local explanation of specific errors, while the aggregate counts show the cost of applying the restriction across the test set.

This result is particularly relevant for a parser built from lexicalized tree fragments. A part-of-speech category names a class of use for a word. A supertag specifies much more of the surrounding structure. Correctly requiring the former still leaves the task of finding a fragment with the right arrangement of arguments, modifiers, and combination sites. The reported increase in supertag accuracy can coexist with losses on particular sentences where the right combination of trees is no longer reachable. The paper does not trace every new miss to a particular missing template or score.

#### What the individual errors reveal

In one erroneous question analysis, the word *is* was labeled `AUX` instead of `V`. The auxiliary reading led the system to take the wh-element to be a predicate, changing the kind of construction it built. Here an error that might look like a small local category substitution changes the larger tree enough to lose the long-distance analysis. The authors also show a relative construction in which *which* was assigned `CLM` instead of `PRO-REL`. The choice of category can therefore interfere with identifying the function of the fronted element itself, as well as with identifying the status of the verb it occurs near.

Other errors involve plausible distant attachments. In a question involving *why*, *imagine*, and *bring*, the fronted phrase should be analyzed as an adjunct associated with the lower structure. An adjunct is a modifier whose role here is to qualify the event being discussed. The parser attaches the phrase higher, as a modifier of the embedding verb. Both readings can support a clause structure with a fronted phrase, but they answer different questions about which event has the reason being asked for. A wrapping operation can represent the lower relation if it is chosen. Resolving the attachment still requires the system to prefer the right predicate.

The paper gives a related example involving *which*, *said*, and *the bill*. The parser reads the relative element as an argument of *said*. The intended relation lies in the embedded clause about what the slip of paper was. In this case, the higher verb’s tendency to take a wh-element as an argument competes with the analysis required in the particular sentence. The error shows how a convincing local attachment can block recovery of the more distant connection even when the parser has a grammatical operation capable of expressing it.

Taken together, the examples describe errors at different points in the pipeline. An incorrect category can change which analysis is licensed or preferred. A compatible category can still leave an ambiguity about the predicate. Hard constraints on supertags can then prevent a derivation that previously received a parse. The paper does not report a controlled run that removes wrapping, removes dependency scores, or changes search while holding the other components fixed. The comparison across parsers and the reference-tag intervention establish performance differences, with the examples providing explanations for particular successes and failures.

### Limitations

#### Limits the authors identify

The authors emphasize the rarity of the target constructions. Their English data provide 46 annotated long-distance constituents for training, 5 for development, and 27 for test. The rate of 0,11 % is measured over tokens, including punctuation. A comparison of systems on the test instances establishes which recovered more of those instances under the stated criterion. The paper does not estimate uncertainty for those counts or establish how the comparison would change on a sample with a different mix of constructions.

Their language coverage is also limited. They extract and evaluate the grammar for English, and they frame extraction and parsing in other languages as future work. They report having started work on German and French extraction and mention the French Treebank as a possible source for another application. This matters because a grammar extraction procedure can rely on a corpus’s particular conventions for heads, modifiers, and displaced elements. The authors expect the phenomena leading to the target dependencies to vary with the language, so additional work would be necessary to apply the procedure in those settings.

The authors mention English it-clefts as a potential case for the method and say they found none among the examples examined. Their expectation that the parser can handle them follows from the operation they propose. The experiments provide no observed performance on that construction. The paper also proposes extending wrapping to place discontinuous pieces in a wider range of slots between nodes of the target tree. The English results concern the operation implemented and evaluated in the paper.

#### Limits visible in the experimental design

The grammar has access to long-distance relations during extraction because the RRG trees mark the pieces and link them by index. The hand-built percolation tables supply another layer of information about how those trees should be decomposed. For a corpus with different analyses or without comparable indexed annotations, the experiments leave open how the d-edge fragments would be identified and how much adaptation the tables and decrossing procedure would require. The existence of a usable extractor for these English RRG trees is evidence about that annotation setup.

The evaluated data combine gold and silver trees. The paper explains the different approval standards and reports the combined split sizes and scores. It gives no separate parsing or dependency results for the two annotation classes. As a consequence, the reported figures cannot indicate whether any portion of the outcome is associated with annotation review. A similar qualification applies to the long-distance construction types. The error examples identify different phenomena, but the paper does not report separate true-positive and false-negative counts for relativization, wh-movement, and topicalization.

The baseline comparison also changes the parsing method and the representation through which the long-distance prediction is read. A crossing branch in a discontinuous constituency tree and a link inferred from ParTAGe’s supertags and dependency predictions are different forms of evidence for the connection. The authors apply a common partial-credit principle to make the comparison meaningful. Even so, the result estimates success under that operational definition. It does not measure the exact reconstruction of every wrapping site or every node involved in the relation. Nor does the cross-system comparison isolate the contribution of the wrapping operation from differences in scoring, candidate generation, and search.

Some of the reported improvements are tied to the coverage of the run that produced them. With reference categories, ParTAGe has higher reported constituency scores while returning fewer trees and identifying fewer test dependencies. The paper reports the parsed-sentence totals alongside the scores. It gives no paired breakdown showing how performance changes on the sentences parsed by both conditions. The reported higher F1 and exact-match figures therefore cannot settle how much of the change reflects improved trees on shared cases and how much is associated with the set of cases that receive a parse.

The BERT annotations establish that stronger input representations were considered for Discoparset and that the paper reports relative gains from them. There is no matching ParTAGe experiment in that condition. The main F1 comparison supports a ranking for the runs without BERT. It leaves open what would happen if the systems all received comparable additional representations. Similarly, the paper’s heuristic guarantee concerns the best derivation given the available alternatives and weights. It cannot establish that the desired elementary trees were present, that a linguistically correct analysis would receive the best score, or that search will have acceptable cost on a substantially different grammar.

Finally, the paper reports early parsing results for its extracted TWG. Its discussion explains the rule changes and the gap bookkeeping, but gives no measured runtime comparison or analysis of how runtime changes as more gaps are allowed in a derivation. The possibility of multiple wrapping operations is a property of the formalism. The reported benchmark figures describe tree quality, coverage, and connection recovery. Throughput and scaling remain separate empirical questions.

### What came after

The paper’s outlook identifies German and French grammar extraction, experiments on other constituency treebanks, and a more flexible wrapping operation as directions for follow-up. These are plans reported by the authors. There are no documented follow-up studies to discuss here.

## Cite

Cite as Tatiana Bladier, Jakub Waszczuk and Laura Kallmeyer. 2020. Statistical Parsing of Tree Wrapping Grammars. Proceedings of the 28th International Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2020.coling-main.595](https://doi.org/10.18653/v1/2020.coling-main.595)

```bibtex
@inproceedings{bladier2020statistical,
  title = {{Statistical Parsing of Tree Wrapping Grammars}},
  author = {Tatiana Bladier, Jakub Waszczuk and Laura Kallmeyer},
  booktitle = {Proceedings of the 28th International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.595},
  url = {https://doi.org/10.18653/v1/2020.coling-main.595}
}
```

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