Punctuation Processing for Projective Dependency Parsing

Ji Ma, Yue Zhang, Jingbo ZhuACL 2014

Introduction

Dependency parsing is a fundamental task in natural language processing, aimed at uncovering the grammatical structure of sentences by identifying head-modifier relationships between words. Traditionally, statistical parsers treat punctuation marks—such as commas, quotes, and brackets—as independent lexical nodes, assigning them a "parent" or head within the dependency tree. However, this approach often introduces significant noise and structural errors. This paper proposes a paradigm shift: treating punctuation not as independent nodes, but as properties or features attached to their neighboring content words.

The Problem with Punctuation-as-Words

The traditional "punctuation-as-words" approach suffers from three primary drawbacks that hinder parser performance:

  1. Inconsistency in Annotation: Punctuation is often inconsistently handled in treebanks. While parsers can achieve over 90% accuracy on content words, they frequently struggle to reach 85% on punctuation marks, leading to lower overall scores.
  2. Error Propagation and Projectivity: Most modern parsers are "projective," meaning dependency links are not allowed to cross. In this framework, a single misplacement of a comma or quote mark can physically block the parser from establishing correct links between distant content words, causing a cascade of structural failures.
  3. Feature Noise: Features such as "valency" (the number of modifiers a head takes) become distorted when punctuation marks are counted alongside actual nouns or verbs. This adds unnecessary complexity to the model's learning process.

Simply removing punctuation is not a viable solution, as these marks provide essential structural boundaries that guide the human (and machine) understanding of sentence fragments.

Proposed Method: Punctuation as Properties (PaP)

The authors introduce the "Punctuation as Properties" (PaP) approach, where punctuation is converted into metadata during a preprocessing step. Instead of occupying space in the tree, punctuation marks are attached to adjacent words as tags.

  • Paired Punctuation (Brackets, Quotes): These are treated as structural "fences." A "Beginning Punctuation" (BPUNC) tag is attached to the word immediately to its right, and an "Ending Punctuation" (EPUNC) tag is attached to the word to its left. This signals to the parser that the words contained within the pair likely form a self-contained sub-tree.
  • Non-Paired Punctuation (Commas, etc.): These are typically attached to their left-neighboring words.
Figure 4: Comparison between the traditional punctuation-as-nodes approach (c) and the proposed PaP approach (d), where punctuation is integrated as properties of the content words.

By modifying an arc-standard transition-based parser to utilize these properties, the authors designed feature templates that allow the parser to "see" associated punctuation. For instance, the presence of a comma property might indicate that a word is a distant modifier rather than an adjacent one.

Experimental Results

The method was evaluated using the standard Penn Treebank (WSJ) benchmark. The integration of PaP with a transition-based parser using a beam width of 64 (A-S-64) resulted in a 93.06% Unlabeled Attachment Score (UAS), a state-of-the-art result for single-model transition-based parsers at the time.

Table 1: Performance (UAS) of various parsing models across different sentence lengths and punctuation densities.

As shown in Table 1, the A-S-64 model consistently performs well across various sentence lengths. Notably, the PaP method showed the most significant gains in "greedy" parsing (beam width 1), providing a 0.90% UAS improvement over the baseline. This suggests that the property-based approach is particularly effective at preventing early, catastrophic structural mistakes that often plague greedy search strategies.

Conclusion

By reimagining punctuation as a structural constraint rather than a lexical participant, the authors demonstrated that parsers can achieve higher accuracy with less "noise." The PaP approach effectively mitigates the risks of error propagation caused by projectivity constraints while preserving the vital boundary information that punctuation provides. While future work may explore how this logic applies to non-projective languages, the current results set a high bar for English dependency parsing.

Summary updated

BibTeX
@inproceedings{ma2014punctuation,
  author = {Ji Ma and Yue Zhang and Jingbo Zhu},
  title = {{Punctuation Processing for Projective Dependency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-2128},
}
Figure