Part-of-Speech Tagging for Twitter: Annotation, Features, and Experiments

Kevin Gimpel, Nathan Schneider, Brendan O'Connor, Dipanjan Das, Daniel Mills, Jacob Eisenstein, Michael Heilman, Dani Yogatama, Jeffrey Flanigan, Noah A. Smith

Abstract: Kevin Gimpel, Nathan Schneider, Brendan O’Connor, Dipanjan Das, Daniel Mills, Jacob Eisenstein, Michael Heilman, Dani Yogatama, Jeffrey Flanigan, Noah A. Smith. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies.

2011.

TL;DR

Researchers from Carnegie Mellon University developed a specialized Part-of-Speech (POS) tagger for Twitter, achieving nearly 90% accuracy. By creating a custom tagset and leveraging features like phonetic normalization and distributional similarity, they successfully bridged the gap between formal "newswire" NLP and the idiosyncratic, slang-heavy reality of social media.

The Challenge of Microblogging Language

Standard Natural Language Processing (NLP) tools are typically trained on formal text, such as the Wall Street Journal corpus of the Penn Treebank. When these "gold standard" tools meet the "wild west" of Twitter, they stumble.

Twitter presents unique challenges: a 140-character limit (at the time of the study), a lack of conventional orthography (e.g., "2" instead of "too"), and platform-specific elements like hashtags, at-mentions, and URLs. Traditional taggers treat these as "out-of-vocabulary" errors, leading to poor performance. This paper aims to build a pipeline specifically designed for the conversational, noisy, and rapidly evolving language of microblogging.

Methods: Tailoring the Tagger

The authors used a Conditional Random Field (CRF)—a standard statistical modeling method for sequence labeling—but the "secret sauce" lies in their feature engineering:

  • Twitter-Specific Tagset: They designed a 25-tag system that includes standard categories (Noun, Verb) alongside Twitter-specific ones: # (hashtags), @ (at-mentions), U (URLs), E (emoticons), and ~ (discourse markers like "RT").
  • Combined Tags: Because Twitter users often omit apostrophes or use portmanteaus (like "ima" for "I am going to"), the authors introduced tags for combined forms, such as L (nominal + verbal).
The custom 25-tag system designed for Twitter's unique linguistic features.
  • Phonetic Normalization (METAPH): To handle creative spellings, they used the Metaphone algorithm to map words like "thnx," "thanks," and "thanksss" to the same phonetic key.
  • Distributional Similarity (DISTSIM): They leveraged 1.9 million tokens from unlabeled tweets to build a model of word contexts, helping the tagger understand that "s/o" (shoutout) behaves like a verb even if it only appeared once in the training data.

Datasets

  • Annotated Corpus: The primary dataset consists of 1,827 tweets (26,436 tokens) manually tagged by a team of 17 researchers. This was split into training (1,000), development (327), and test (500) sets.
  • Unlabeled Data: To power the distributional similarity features, they used 134,000 unlabeled tweets (1.9 million tokens).
  • External Resources: They also utilized the Penn Treebank (PTB) and the Brown corpus to create a "traditional" tag dictionary for comparison.

Key Insights

  • The "Combined Tag" Strategy: Instead of trying to force a traditional tokenizer to split "he's" or "ima" into two words (which is difficult when apostrophes are missing), they created single tags for these "nominal + verbal" hybrids. This significantly reduced tokenization errors.
  • Positional Bias: The researchers found that Twitter-specific tokens have strong "geographic" preferences within a tweet. At-mentions and discourse markers (RT) tend to appear at the start, while URLs, emoticons, and hashtags gravitate toward the end.
  • Slang is Systematic: By using phonetic normalization, the authors proved that much of Twitter's "noise" is actually systematic variation. Mapping "lmao" and "lmaooooo" to the same representation allows the model to share statistical strength across different spellings.

Key Results

The full system achieved 89.37% accuracy on the test set, representing a 25% relative error reduction over a standard Stanford POS Tagger retrained on the same Twitter data (85.85%).

System performance and ablation study results on development and test sets.

An ablation study revealed that the most impactful features were DISTSIM (distributional similarity) and TAGDICT (using traditional dictionaries as a "soft" hint), both of which provided a ~1% absolute boost in accuracy. Human annotators agreed 92.2% of the time, suggesting that the task is inherently difficult even for people due to the ambiguity of short-form text.

Limitations and Future Work

Despite specialized features, the system still struggles with proper nouns (^), achieving only 71% recall. This is largely because Twitter users are inconsistent with capitalization, making it hard to distinguish a name from a common noun. Additionally, the "Miscellaneous" tag (G), which covers symbols and rare abbreviations, remains a challenge with only 26% recall. Future work may involve semi-supervised learning to further improve performance on the most creative aspects of social media language.

Reference: Gimpel, K., et al. (2011). Part-of-Speech Tagging for Twitter: Annotation, Features, and Experiments. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics.

Summary updated

BibTeX
@inproceedings{gimpel2011part,
  author = {Kevin Gimpel and Nathan Schneider and Brendan O'Connor and Dipanjan Das and Daniel Mills and Jacob Eisenstein and Michael Heilman and Dani Yogatama and Jeffrey Flanigan and Noah A. Smith},
  title = {{Part-of-Speech Tagging for Twitter: Annotation, Features, and Experiments}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2011},
  url = {https://openreview.net/forum?id=zayKt2_6nDE},
}
Figure