NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Finnish Internet Parsebank

Juhani Luotolahti, Jenna Kanerva, Jouni Luoma, Valtteri Skantsi, Sampo Pyysalo, Veronika Laippala, Filip GinterResearch 2023

Abstract

We present a Finnish web corpus with multiple text sources and rich additional annotations. The corpus is based in large parts on a dedicated Internet crawl, supplementing data from the Common Crawl initiative and the Finnish Wikipedia. The size of the corpus is 6.2 billion tokens from 9.5 million source documents. The text is enriched with morphological analyses, word lemmas, dependency trees, named entities and text register (genre) identification. Paragraph-level scores of an n-gram language model, as well as paragraph duplication rate in each document are provided, allowing for further filtering of the dataset by the end user. Thanks to changes in the 2023 Finnish copyright legislation, the corpus is openly available for research purposes, and can also be accessed through the NoSketchEngine concordance tool and the dep search dependency tree query tool.

Introduction

While Large Language Models (LLMs) thrive on massive datasets, "small" languages like Finnish often face a data scarcity problem. In giant multilingual crawls like Common Crawl, Finnish represents only a tiny fraction of the data. Furthermore, this data is often riddled with "web noise": HTML tags, boilerplate text, machine-translated junk, and navigation menus.

To address this, the Finnish Internet Parsebank was developed. It is a massive, high-quality web corpus designed to push the boundaries of Finnish Natural Language Processing (NLP). By combining a custom web crawl with sophisticated cleaning and deep linguistic annotation, researchers have created a 6.2-billion-token resource that serves as a structured map of the Finnish internet.

The Challenge of Web-Scale Data

Most massive web corpora are "raw"—they lack the linguistic annotations (like parts of speech or syntax trees) necessary for researchers to study how a language is actually used. The authors set out to create a resource that is both large enough for modern AI training and precise enough for academic linguistics. As shown in the comparison below, the Finnish Internet Parsebank provides a level of annotation depth that is missing from larger, noisier datasets like mc4 or Oscar.

Comparison of the Finnish Internet Parsebank with other large-scale corpora in terms of size and linguistic annotations.

Methodology: From Raw Crawl to Structured Map

The team curated the internet through a multi-stage pipeline:

  1. Multi-Source Collection: They combined a dedicated crawl of the .fi domain (using the SpiderLing crawler) with Finnish data from Common Crawl and the Finnish Wikipedia.
  2. Aggressive Deduplication: A two-stage process was used—first removing exact document duplicates via hashing, then using the Onion tool for fuzzy, paragraph-level deduplication.
  3. Quality Filtering: Character-based heuristics and a dedicated classifier were applied to identify and remove machine-translated or low-quality generated content.
  4. Deep Annotation: Every sentence was processed through the Turku Neural Parser to produce lemmas, dependency trees, 18 types of named entities (NER), and register (genre) identification.
  5. Metadata Scoring: Perplexity scores were calculated for every paragraph using KenLM, allowing users to filter the corpus by textual quality.

This rigorous cleaning process significantly reduced the volume of the raw data, ensuring that only high-quality content remained in the final corpus.

Data retention rates across different source materials after the deduplication process.

Key Insights and Results

  • The ".fi" Limitation: The researchers found that focusing only on the national .fi top-level domain would miss nearly 40% of Finnish web content, as many Finnish sites use .com, .net, or .org domains.
  • Retention vs. Volume: After deduplication and cleaning, only about 20% of the original custom crawl was retained. This highlights the prevalence of "junk" on the open web and why raw size is a misleading metric for corpus quality.
  • Legal Breakthrough: The 2023 Finnish copyright legislation provided a research exemption that allows this massive dataset to be openly shared with the global research community.
  • Performance: Manual evaluation showed that over 94% of sampled sentences were "good Finnish." The parser achieved a Labeled Attachment Score (LAS) of 86.4%, and the NER system reached an 89% F1-score.

Conclusion

The Finnish Internet Parsebank represents a significant step forward for Finnish NLP. By providing "duplication buckets" (D-25, D-50, D-75), the authors allow users to choose their own trade-off between data volume and uniqueness. While challenges remain in sentence splitting for informal text and domain shifts in social media, the provided perplexity and duplication scores open the door for users to create specialized sub-corpora for fine-tuning LLMs or conducting deep linguistic research.

Summary updated

BibTeX
@inproceedings{luotolahti2023finnish,
  author = {Juhani Luotolahti and Jenna Kanerva and Jouni Luoma and Valtteri Skantsi and Sampo Pyysalo and Veronika Laippala and Filip Ginter},
  title = {{Finnish Internet Parsebank}},
  booktitle = {Research},
  year = {2023},
  doi = {10.21203/rs.3.rs-3138153/v1},
}
Figure