Abstract
This paper presents a scalable pipeline for constructing massive, consistently annotated "web parsebanks"—text corpora with syntactic structures—using the Universal Dependencies (UD) framework. By leveraging web-scale crawling and state-of-the-art dependency parsing, the authors produce a 3.6-billion-token Finnish parsebank. This resource enables the study of rare syntactic phenomena through a searchable interface, bridging the gap between massive unannotated web data and high-quality linguistic analysis.
Introduction
While the internet offers an endless supply of text for linguistic research, cross-linguistic syntactic analysis has historically been bottlenecked by inconsistent annotation schemes. Different parsers for different languages traditionally output incompatible syntactic trees. The Universal Dependencies (UD) project recently addressed this consistency problem by standardizing part-of-speech tags and dependency relations across many languages. However, researchers still lack massive, web-scale corpora annotated with this universal scheme. This paper bridges that gap by demonstrating how to combine web-scale crawling, retrainable parsers, and the UD framework to create massive, searchable parsebanks, starting with a case study for Finnish.
Methodology and Pipeline Architecture
The authors built an end-to-end processing pipeline designed to scale to billions of words. The architecture handles both the ingestion of unannotated web data and the training of models using gold-standard annotated data.
Processing Steps:
- Web Crawling & Cleaning: The SpiderLing web crawler gathered Finnish text, applying language detection and boilerplate removal (via the
justTextlibrary) to extract clean sentences from raw HTML. - Segmentation & Tagging: Text was segmented using Apache OpenNLP. For morphological tagging, the system combined a finite-state analyzer (OMorFi) with a machine-learning-based tagger (Marmot).
- Syntactic Parsing: A graph-based dependency parser from the Mate tools package was retrained on the UD Finnish corpus. The parser predicts both the basic UD tree structure and an extended layer of non-tree dependencies, such as conjunction propagation.
- Query System: To make the massive dataset usable, the parsed data was integrated into Sets, a highly scalable syntactic search engine capable of complex, nested subtree queries.
Datasets
The pipeline utilized several key data sources to achieve its scale and accuracy:
- UD Finnish Corpus (Release 1.0): Served as the gold-standard training data for the machine learning components, containing approximately 202,000 manually annotated tokens.
- Common Crawl & Custom Crawl: The authors extracted 1.5 billion Finnish tokens from the 2012 Common Crawl release and performed a dedicated 88-day crawl of the Finnish web, yielding 1.6 TB of raw HTML for cleaning and deduplication.
- Finnish Text Collection: A news corpus used as a baseline to compare the linguistic characteristics of web-derived text against professionally edited content.
Key Results and Analysis
The final deduplicated Finnish web parsebank represents a significant leap in available linguistic resources. It is roughly 40 times larger than standard Finnish news corpora, providing the volume necessary to study the "long tail" of language—grammatical constructs so rare they are absent from smaller, edited corpora.
Performance Metrics:
- Parsing Accuracy: The parser achieved an 82.1% Labeled Attachment Score (LAS) on the standard UD Finnish test set.
- Out-of-Domain Robustness: When evaluated on a random sample of 98 sentences from the wild web crawl, the parser maintained a respectable 78.8% LAS, showing only a ~3% drop despite the messy, unedited nature of internet text.
- Computational Efficiency: The pipeline processed billions of tokens in roughly 8,000 CPU core hours, demonstrating that scaling this approach to multiple languages is feasible for standard research clusters.
Discussion and Future Work
Keyword analysis revealed that web text is fundamentally different from news text, showing a higher density of numbers, social media artifacts, and informal language. This makes the parsebank invaluable for studying modern, computer-mediated communication.
However, limitations remain. Because target linguistic phenomena are rare, parser errors (such as swapping subject and object in rare transitive structures) still occur, requiring manual filtering by researchers. Future work aims to expand this pipeline to all languages in the UD framework. While data acquisition for major languages like English or French is straightforward, adapting the pipeline to languages without whitespace token boundaries (e.g., Japanese or Chinese) will require specialized tokenization strategies.
Summary updated