An Automatic Treebank Conversion Algorithm for Corpus Sharing

Jong-Nae Wang, Jing-Shin Chang, Keh-Yih SuACL 1994

Introduction

Building a "treebank"—a large collection of sentences annotated with their syntactic structures—is a labor-intensive and costly endeavor. These datasets serve as the "gold standard" for training and evaluating natural language processing (NLP) parsers. However, treebanks often suffer from a lack of portability. Different research groups utilize distinct "grammars"—specific sets of rules and tags (e.g., "Noun Phrase" or "Transitive Verb")—to describe linguistic structures.

When a laboratory updates its grammar or attempts to use a treebank from another source, the existing data often becomes incompatible due to misaligned tags and structures. Manually re-tagging thousands of sentences is prohibitively expensive, leading to "silos" where valuable linguistic resources cannot be easily shared or evolved. This paper introduces an automatic "translator" to bridge this gap, recycling syntactic structures with high precision.

The Conversion Algorithm

The authors frame treebank conversion as a transfer problem, akin to machine translation but between two different descriptions of the same language. The core of their approach is a Bracket Matching Metric. Instead of defining complex mapping rules for every possible tag, the algorithm relies on the "skeletal" structure of the sentence.

Figure 1: The architecture of the treebank conversion system, showing the flow from source sentence S to the converted target tree.

The process follows these steps:

  1. Parsing: A sentence from the source treebank is parsed using the target grammar, typically resulting in multiple ambiguous candidate trees.
  2. Indexing: Every phrase in both the source and candidate target trees is represented as a range of word indices (e.g., words 2 through 5 form a constituent).
  3. Scoring: The algorithm compares candidate target trees against the original source tree. A candidate receives a point for every phrase boundary (bracket) it shares with the source.
  4. Selection: The candidate with the highest matching score is selected as the converted tree.

To ensure robustness, the algorithm collapses "single productions" (where one category leads directly to another, such as $A \rightarrow B$) into a single bracket. This simplifies the matching process and prevents over-counting based on varying levels of nesting between grammars.

Experimental Setup

The algorithm was evaluated using the BehaviorTran (formerly ArchTran) MT System database, consisting of 8,867 English sentences from technical manuals. The researchers used two versions of their grammar: $G_1$ (the older source) and $G_2$ (the newer, more complex target). $G_2$ featured a broader coverage with 141 non-terminal symbols compared to $G_1$'s 107.

Results and Analysis

The algorithm achieved a remarkable 96.46% conversion accuracy (6,799 out of 7,048 sentences), after excluding sentences that were either unambiguous or incompatible with the new grammar.

Analysis of the failures revealed that structural "attachment" remains the primary challenge in conversion. As shown in the error distribution table below, over half of the errors were related to conjunctions and appositions—deciding exactly which words are linked by "and" or similar connectors.

Figure 5: Distribution of error types in the conversion process.

Interestingly, only 19.6% of errors stemmed from incorrect part-of-speech tags. This supports the insight that physical phrase boundaries (brackets) carry sufficient information to disambiguate complex grammars, even without explicit tag mapping.

Limitations and Future Work

While highly effective, the algorithm exhibits a systematic bias toward the source structure. If the target grammar was designed to correct a structural "error" in the source, the algorithm might inadvertently preserve the old structure because it matches the source brackets. Additionally, tie-breaking remains a simple "first-found" approach, which contributed to several incorrect mappings.

Future research will explore incorporating specific part-of-speech or syntactic category mappings to resolve ties and handle cases with identical bracket boundaries. The authors also plan to validate the system on larger, public datasets such as the Penn Treebank.

Summary updated

BibTeX
@inproceedings{wang1994automatic,
  author = {Jong-Nae Wang and Jing-Shin Chang and Keh-Yih Su},
  title = {{An Automatic Treebank Conversion Algorithm for Corpus Sharing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1994},
  doi = {10.3115/981732.981766},
}
Figure