Finding parallel texts on the web using cross-language information retrieval

Achim Ruopp, Fei XiaIJCNLP 2008

Abstract

Parallel corpora are essential for training natural language processing (NLP) models like machine translation, but high-quality, diverse datasets are scarce. This paper introduces a pipeline that leverages commercial search engines, cross-language information retrieval (CLIR), and URL pattern matching to automatically discover translated web pages with nearly 90% precision.

Introduction

Machine translation and multilingual NLP rely heavily on parallel corpora—texts paired with their exact translations in another language. However, existing corpora are often domain-specific (like the Europarl dataset of parliamentary proceedings), limited in size, or restricted by licensing. While the World Wide Web contains a massive amount of translated content, finding it is like finding a needle in a haystack. There are no universal standards for how web developers structure multilingual sites. Furthermore, commercial search engines are optimized to return relevance-ranked results for human users, not to surface structural translations for researchers. Previous web-mining methods relied heavily on ad-hoc structural features, which misses a vast amount of potential data. This paper proposes a systematic, search-engine-driven approach to finding these parallel pages.

Methodology

The authors propose a multi-step pipeline to extract parallel pages (specifically English-German pairs) using the Yahoo! search engine. The process involves four main stages: sampling, checking, matching, and filtering.

High-level overview of the parallel text discovery pipeline.
  1. Sampling: Search queries are generated in the source language ($L_1$) using mid-frequency words from a bilingual dictionary. To improve results, the authors use query expansion (adding related words from search summaries) and restrict searches using URL language identifiers (e.g., inurl:en).
  2. Checking: The sampling query is translated into the target language ($L_2$) to query the search engine again, often restricting the search to the top 30 domains found in the first step.
  3. Matching: Source and target URLs are paired using three methods:
  4. Fixed Language List: Swapping known language codes (e.g., en to de).
  5. Levenshtein Distance: Matching URLs with an edit distance of 4 or less.
  6. URL Part Substitution: Directly swapping language codes in the $L_1$ URL and pinging the server via HTTP HEAD to see if the $L_2$ URL exists. This bypasses the second search query entirely.
  7. Filtering: To eliminate false positives, a linear combination of structural metrics (HTML sequence lengths) and content-based metrics (translated token pairs) is used.

Experimental Setup

The pipeline was evaluated using the Europarl Corpus to generate the bilingual translation lexicon. The primary data source was the Web via Yahoo! Search. Evaluation was conducted on a 50-pair development set for parameter tuning and a 110-pair test set for precision and recall analysis.

Results and Discussion

The experimental results demonstrate that bypassing the search engine via URL Part Substitution is highly effective, finding significantly more candidate pairs than relying on search results alone. However, because many servers return default pages instead of 404 errors, content-based filtering is essential.

Experimental results comparing different search and matching strategies.

In the most productive configuration (source query expansion and URL part substitution), the pipeline generated 433 candidate parallel page pairs from just 100 sampling queries. On the manually evaluated test set, the combined filtering method achieved 88.9% precision. While recall was lower (36.4%), the authors argue this is acceptable as more data can be gathered by simply running more queries.

Key insights include:

  • Levenshtein Distance for Pattern Discovery: This method can automatically discover new, non-standard language identifiers used by web developers.
  • Parallel Page Density: The authors estimate that only about 0.03% of English pages have a German equivalent, highlighting the difficulty of the task.

Conclusion and Future Work

The current approach is limited by commercial search engine API bottlenecks. Future work will focus on automatically learning new URL translation patterns and evaluating the mined data within Statistical Machine Translation (SMT) systems. The authors also suggest that running these algorithms directly on raw search engine indices or web crawl data would bypass current API limitations.

Summary updated

BibTeX
@inproceedings{ruopp2008finding,
  author = {Achim Ruopp and Fei Xia},
  title = {{Finding parallel texts on the web using cross-language information retrieval}},
  booktitle = {IJCNLP},
  year = {2008},
}
Figure