Skip to main content
QUICK REVIEW

[Paper Review] Automatic Creation of Text Corpora for Low-Resource Languages from the Internet: The Case of Swiss German

Lucy Linder, Michael Jungo|arXiv (Cornell University)|Nov 30, 2019
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper presents SwissCrawl, the largest publicly available corpus of written Swiss German, created via a customized web crawler that extracts text from diverse online sources, including multilingual pages and informal content. The corpus, containing over 480,000 sentences, significantly improves language modeling performance, reducing perplexity by 36% on the Leipzig test set when combined with existing data.

ABSTRACT

This paper presents SwissCrawl, the largest Swiss German text corpus to date. Composed of more than half a million sentences, it was generated using a customized web scraping tool that could be applied to other low-resource languages as well. The approach demonstrates how freely available web pages can be used to construct comprehensive text corpora, which are of fundamental importance for natural language processing. In an experimental evaluation, we show that using the new corpus leads to significant improvements for the task of language modeling. To capture new content, our approach will run continuously to keep increasing the corpus over time.

Motivation & Objective

  • To address the scarcity of natural language processing resources for low-resource languages like Swiss German.
  • To develop a scalable, automated method for collecting written Swiss German from the internet despite lack of official TLDs and inconsistent orthography.
  • To create a comprehensive, up-to-date corpus reflecting real-world usage in informal contexts such as social media and forums.
  • To demonstrate the corpus's utility in improving NLP tasks, particularly language modeling.
  • To enable continuous expansion of the corpus through iterative, human-in-the-loop web crawling.

Proposed method

  • A customized web crawler uses a multi-strategy seeder to generate diverse search queries, including trigrams, frequency-weighted word combinations, and human-curated inputs.
  • The system employs a breadth-first crawling strategy to expand from seed URLs, extracting text from web pages using HTML parsing and heuristics to isolate relevant content.
  • A language identification model with 99% confidence threshold filters sentences to retain only those likely to be in Swiss German, reducing noise from High German and other languages.
  • Text is segmented into sentences using heuristics sensitive to informal punctuation, including ASCII emojis and dialect-specific typographical patterns.
  • Duplicate sentences are removed based on exact character matching, with special handling for umlaut variations and truncations.
  • The corpus is continuously expanded by re-running the pipeline at regular intervals to capture evolving online content.

Experimental results

Research questions

  • RQ1Can a scalable, automated web crawling pipeline effectively collect written Swiss German from the internet despite the absence of dedicated TLDs and inconsistent orthography?
  • RQ2How does the quality and diversity of a corpus collected from informal online sources compare to existing, more curated corpora in terms of linguistic realism and utility for NLP tasks?
  • RQ3To what extent does the inclusion of a large, informal corpus improve language modeling performance for Swiss German compared to traditional, smaller, or more formal corpora?
  • RQ4Can a human-in-the-loop, iterative system design effectively refine and improve the corpus collection pipeline over time as linguistic knowledge evolves?
  • RQ5What are the main challenges in extracting and segmenting Swiss German text from unstructured web content, particularly in multilingual or user-generated contexts?

Key findings

  • The SwissCrawl corpus contains 483,526 unique sentences, making it the largest known corpus of written Swiss German to date.
  • The corpus significantly improves language modeling, reducing perplexity by 36% on the Leipzig test set when training on both SwissCrawl and Leipzig data.
  • The model trained exclusively on SwissCrawl achieves a perplexity of 45.9 on its own test set, outperforming the Leipzig-only model on the same data.
  • The Leipzig-only model shows poor generalization, with perplexity nearly doubling (from 47.6 to 92.6) when evaluated on the SwissCrawl test set.
  • The corpus captures authentic informal usage, including slang, elliptical structures, and non-standard punctuation, reflecting real-world Swiss German writing.
  • The system successfully identifies and filters out most non-Swiss-German content, with false positives primarily limited to High German with spelling errors or regional dialects.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.