Abstract
This paper presents the Parallel Web Corpus Construction (PWCC) system, an automated framework for discovering high-quality parallel text across the web. By integrating structural URL analysis with a deep evaluation process involving length-based sentence alignment and bilingual dictionaries, the system achieves a precision of 94.8% and a recall of 93.4%. The approach effectively addresses the data bottleneck in Statistical Machine Translation (SMT) by efficiently filtering web content to identify translated page pairs.
Introduction
Data-driven Natural Language Processing (NLP)—specifically Statistical Machine Translation (SMT) and Cross-Lingual Information Retrieval—relies heavily on parallel corpora. These are collections of texts paired with their direct translations. However, high-quality parallel corpora are notoriously difficult and expensive to build manually.
While the internet is a massive potential source of such data, finding "needles in the haystack"—actual translated page pairs among billions of unrelated documents—is a significant technical challenge. Existing methods often relied on simple URL string matching, which misses many pairs or produces too much noise. The PWCC system aims to overcome these limitations through a multi-stage filtering and alignment pipeline.
Methods
The PWCC system follows a four-step pipeline designed to move from raw web data to a refined parallel corpus.
- Web Fetching: The process begins with a spider (WebZip) crawling specific hosts likely to contain multilingual content, such as government or international organization websites.
- Candidate Pair Preparation: To avoid the computational cost of comparing every possible page pair, the system uses three heuristics to filter candidates:
- URL Path & Depth: Parallel pages often share common directory structures and lie at the same depth in the site hierarchy.
- File Size: Translated HTML files (excluding media) typically have similar character counts.
- Anchor Text: Link text pointing to these pages is verified for semantic similarity using a bilingual wordlist.
- Sentence Alignment: For the remaining candidates, the system extracts text and aligns sentences using a length-based strategy. This assumes that a long sentence in one language will likely translate to a long sentence in another. Dynamic programming is employed to find the alignment that maximizes the probability of the match.
- Similarity Evaluation: This final "deep" check calculates a similarity score for each pair using a bilingual dictionary. If the aggregate similarity of all aligned sentences in a page pair exceeds a specific threshold (log 0.65), the pair is saved as a parallel corpus.
Experimental Evaluation
The researchers evaluated PWCC using data from the website of the Ministry of Foreign Affairs of China (fmprc.gov.cn), consisting of 40,262 Chinese pages and 17,324 English pages.
- Precision: A subset of 400 system-produced pairs was manually annotated, yielding a precision of 94.8% (379/400 correct translations).
- Recall: Using a test set of 320 known parallel pairs and 80 non-parallel pairs, the system achieved a recall of 93.4%.
Key Insights and Discussion
The PWCC system demonstrates that structural heuristics, such as directory depth and common paths, are more reliable indicators of translation than simple URL string edit distance. A key innovation is using sentence alignment not just for organization, but as a verification filter: if a page pair cannot be cleanly aligned with high lexical similarity, it is discarded.
One identified limitation is length-based alignment errors. In cases where a page contains many different sentences of very similar lengths, the alignment module can become "confused," leading to the incorrect rejection of valid parallel pages. Future work may involve integrating robust lexical features earlier in the alignment process to resolve these ambiguities. Despite this, the system significantly lowers the time and RAM requirements for large-scale parallel text mining by avoiding exhaustive comparisons.
Summary updated