A Dependency Parser for Tweets

Lingpeng Kong, Nathan Schneider, Swabha Swayamdipta, Archna Bhatia, Chris Dyer, Noah A. Smith

Abstract

Traditional dependency parsers, typically trained on formal news corpora like the Penn Treebank (PTB), frequently fail when applied to the informal and fragmented language of social media. This paper introduces TWEEBOPARSER, a dependency parser specifically engineered for the syntactic nuances of English tweets. By utilizing a novel, rapidly annotated corpus (TWEEBANK) and a graph-based parsing architecture that supports multiple roots and multiword expressions, the authors achieve significant improvements in parsing accuracy for social media data.

Introduction

In Natural Language Processing (NLP), the Penn Treebank—a collection of Wall Street Journal articles—has long served as the gold standard for training dependency parsers. However, the linguistic gap between formal journalism and the "wild west" of Twitter is vast. Tweets are characterized by non-syntactic elements (hashtags, URLs, emoticons), fragmented structures, and evolving slang that traditional grammar rules fail to capture. When a standard parser encounters a tweet like "RT @justinbieber : now Hailee get a twitter #belieber", it often fails to identify meaningful grammatical relationships.

The TWEEBOPARSER Methodology

To bridge this domain gap, the researchers at Carnegie Mellon University developed a pipeline tailored for the medium. The approach focuses on three primary innovations:

  1. Token Selection: Rather than forcing every character into a syntactic tree, the model identifies which tokens serve a functional grammatical role. Non-syntactic "noise," such as retweet markers or colons following usernames, is filtered out before parsing.
  2. Multiword Expressions (MWEs): Idiomatic or fixed phrases like "LA Times" or "All the Rage" are treated as single units. This simplification prevents the parser from struggling with the internal, often non-standard, relationships within these phrases.
  3. Multiple Roots: Traditional parsers assume every sentence has exactly one root. TWEEBOPARSER acknowledges that a single tweet often contains several independent utterances or fragments, allowing the parser to identify multiple roots within a single post.
Figure 1: An example of a tweet dependency parse demonstrating multiple roots and multiword expressions.

Additionally, the authors employed a stacking-inspired adaptation technique. They utilized a standard parser trained on the PTB to generate predictions for tweets, which were then used as features for TWEEBOPARSER. This allows the model to leverage formal grammatical knowledge without being constrained by it.

Datasets and Annotation

A major contribution of this work is TWEEBANK, a new dataset of 929 tweets (over 12,000 tokens) with manual dependency annotations. Notably, the authors demonstrated that high-quality resources could be built rapidly; most of TWEEBANK was annotated in a single day by two dozen contributors using a simplified scheme.

Figure 2: Statistics for the TWEEBANK and TEST-FOSTER datasets, highlighting the prevalence of multi-root tweets and MWEs.

As shown in the dataset statistics, the prevalence of multi-root tweets and MWEs in the training data justifies the specialized architectural choices of the parser. The researchers also utilized TEST-FOSTER, an existing benchmark of 250 tweet sentences, to evaluate domain adaptation performance.

Key Results and Insights

TWEEBOPARSER achieved 80.9% unlabeled attachment accuracy (UAS) on the new test set. When compared to a baseline parser trained solely on formal news (PTB), the system provided a 7.8% absolute gain in accuracy. Ablation studies revealed that the specific architectural adaptations—handling MWEs and multiple roots—contributed a 2–3% boost in performance, indicating that structural changes are as vital as domain-specific data.

The findings suggest that "syntactic noise" is a significant barrier to accuracy; explicitly filtering non-syntactic tokens improves results. Furthermore, the success of TWEEBANK suggests that small-scale, rapid annotation can be more effective for social media than massive, out-of-domain datasets.

Conclusion and Future Work

While TWEEBOPARSER represents a significant step forward, several avenues for improvement remain. The current pipeline performs token selection and parsing in separate steps; a joint inference model might offer more robustness. Additionally, while this work focused on unlabeled attachment (identifying connections), future research is needed to accurately label the specific grammatical relationships (e.g., subject vs. object) within the tweet structure. Expanding the TWEEBANK dataset further would likely continue to drive accuracy gains in this challenging domain.

Summary updated

BibTeX
@inproceedings{kong2014dependency,
  author = {Lingpeng Kong and Nathan Schneider and Swabha Swayamdipta and Archna Bhatia and Chris Dyer and Noah A. Smith},
  title = {{A Dependency Parser for Tweets}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  doi = {10.3115/v1/d14-1108},
}
Figure