Abstract
Statistical Machine Translation (SMT) systems require vast amounts of parallel text, which has traditionally been expensive to acquire. This paper demonstrates a cost-effective pipeline to extract millions of parallel sentence pairs from the publicly available Common Crawl dataset. By spending only $500 on cloud computing, we extracted high-quality parallel data across dozens of languages, leading to performance gains of up to 5 BLEU points on out-of-domain translation tasks.
Introduction
The performance of Statistical Machine Translation (SMT) is heavily dependent on the availability of large parallel corpora. Historically, researchers have relied on curated datasets from international organizations like the United Nations or the European Parliament. While high in quality, these datasets are limited in domain and language coverage. The Web offers a much larger potential source of parallel text, but crawling it at scale has been a privilege reserved for large technology companies.
This work addresses the "data bottleneck" by leveraging the Common Crawl, a massive, publicly available snapshot of the web. We present a highly efficient pipeline that processes this data in the cloud, making web-scale data mining accessible to academic researchers and smaller organizations.
Methodology
Our approach utilizes Amazon Elastic MapReduce (EMR) to process a 32.3-terabyte subset of the Common Crawl directly on Amazon S3. The core of the extraction process is an enhanced version of the STRAND algorithm, which identifies parallel document pairs using three primary signals:
- URL Matching: We identify candidate pairs by looking for URL patterns that indicate translations, such as substituting language codes (e.g.,
/en/for/fr/). - Structural Filtering: We compare the HTML tag sequences of candidate pages. Pages with nearly identical structures are highly likely to be translations, regardless of the underlying text.
- Sentence Alignment: Once document pairs are identified, we use the Gale and Church (1993) algorithm to align sentences based on length and perform boilerplate removal to extract clean parallel text.
Data Scale and Linguistic Breadth
The pipeline successfully extracted millions of sentence pairs across a diverse set of languages. As shown in Table 1, we obtained 10.2 million segments for French and 7.5 million for German.
The method proves particularly effective for expanding resources for lower-resource languages such as Tamil, Urdu, and Pashto, which are often underrepresented in standard curated corpora.
Results and Evaluation
Manual evaluation indicates that approximately 80% of the extracted sentence pairs are high-quality translations. When integrated into SMT systems, this data provides significant improvements:
- News Domain: A consistent improvement of ~0.5 BLEU points over strong baselines.
- Open Domain: On datasets like Fisher (speech) and Tatoeba, we observed gains of up to 5 BLEU points. This suggests that web-mined data is far more representative of everyday language than formal news or legal text.
Domain Diversity
A major strength of the Common Crawl is its inherent domain diversity. Our pipeline captures a wide variety of genres, from travel and government to religious and political texts.
As illustrated in Table 2, the inclusion of domains like booking.com and amnesty.org provides the linguistic variety necessary for robust, general-purpose translation systems.
Conclusion
We have demonstrated that web-scale parallel text extraction can be performed for as little as $500. This approach significantly reduces the barrier to entry for high-quality SMT research. Future work will focus on improving recall by moving beyond simple URL heuristics and scaling the pipeline to the full Common Crawl dataset.
Summary updated