DanTok: Domain Beats Language for Danish Social Media POS Tagging

Kia Kirstein Hansen, Maria Barrett, Max Müller-Eberstein, Cathrine Damgaard, Trine Eriksen, Rob van der GootNoDaLiDa 2023

Abstract

Language from social media remains challenging to process automatically, especially for non-English languages. In this work, we introduce the first NLP dataset for TikTok comments and the first Danish social media dataset with part-of-speech annotation. We further supply annotations for normalization, code-switching, and annotator uncertainty. As transferring models to such a highly specialized domain is non-trivial, we conduct an extensive study into which source data and modeling decisions most impact the performance. Surprisingly, transferring from in-domain data, even from a different language, outperforms in-language, out-of-domain training. These benefits nonetheless rely on the underlying language models having been at least partially pre-trained on data from the target language. Using our additional annotation layers, we further analyze how normalization, code-switching, and human uncertainty affect the tagging accuracy.

Introduction

Social media language is a moving target—it is noisy, full of slang, emojis, and frequent code-switching. While English social media NLP is well-studied, lower-resourced languages like Danish have historically lacked high-quality annotated datasets for these platforms. Existing Danish linguistic resources, such as the Danish Dependency Treebank (DDT), consist almost entirely of well-edited, formal text. This creates a significant performance gap when applying standard NLP tools to the spontaneous world of TikTok comments. The DanTok project aims to bridge this gap by creating a specialized benchmark and exploring the most effective transfer learning strategies for this niche.

The DanTok Dataset and Methodology

The researchers collected and filtered Danish TikTok comments to create the DanTok dataset, featuring 8,028 manually verified tokens. The annotation includes multiple layers designed to capture the complexity of social media language:

  • Part-of-Speech (POS): Following Universal Dependencies (UD) guidelines with social-media-specific adaptations.
  • Lexical Normalization: Mapping non-standard tokens (e.g., "dn" $\rightarrow$ "den") to their standard forms.
  • Code-Switching: Identifying tokens from other languages (predominantly English).
  • Annotator Uncertainty: Marking cases where human experts found the tag ambiguous.

To identify the best modeling approach, the study benchmarked 36 combinations of Large Language Models (LLMs) and fine-tuning datasets, varying both the domain (social media vs. formal) and the language (Danish vs. English vs. Multilingual).

Results and Analysis

A primary finding of the research is that domain often beats language. For multilingual models, fine-tuning on English social media data (Tweebank2) frequently outperformed fine-tuning on Danish formal text (DDT). This suggests that the stylistic and grammatical "grammar" of social media is somewhat universal across languages, making cross-lingual in-domain transfer a powerful strategy.

POS tagging accuracy on the normalized DanTok development set across various model/data combinations

Normalization acted as a significant "force multiplier," consistently boosting accuracy by 2–5 percentage points by removing surface-level noise. Furthermore, model size was not the sole determinant of success; the compact ÆLÆCTRA model (14M parameters) performed nearly as well as the massive TWHIN-BERT-large (561M parameters), proving that domain-specific pre-training is often more critical than raw scale.

Qualitative analysis revealed that models frequently confused verbs with auxiliaries and struggled with proper noun inconsistencies, such as lowercase names being tagged as common nouns. Interestingly, model errors often aligned with tokens where human annotators also felt uncertain, highlighting the inherent ambiguity of spontaneous digital language.

The 11 most frequent tag confusions for the ÆLÆCTRA model

Conclusion

DanTok provides the first linguistically annotated dataset for Danish TikTok, establishing a vital baseline for future research. The study demonstrates that for highly specialized domains, transferring knowledge from in-domain data in other languages can be more effective than using out-of-domain data in the target language. While the dataset's size is currently limited by the high cost of manual verification and privacy filtering, it serves as a foundation for more robust social media NLP in lower-resourced languages.

Summary updated

BibTeX
@inproceedings{hansen2023dantok,
  author = {Kia Kirstein Hansen and Maria Barrett and Max Müller-Eberstein and Cathrine Damgaard and Trine Eriksen and Rob van der Goot},
  title = {{DanTok: Domain Beats Language for Danish Social Media POS Tagging}},
  booktitle = {NoDaLiDa},
  year = {2023},
  url = {https://openreview.net/forum?id=AMKkCexeRT},
}
Figure