Abstract
Aligning sentences in bilingual corpora is a fundamental step for developing machine translation systems and bilingual dictionaries. This paper describes a statistical algorithm that uses character length as the primary signal for alignment. By applying a probabilistic model and dynamic programming, the system achieves a 96% accuracy rate on English-French and English-German texts. Furthermore, by filtering for high-confidence matches, error rates can be reduced to below 1%.
Introduction
The construction of parallel corpora—large datasets where the same content is available in multiple languages—is essential for modern computational linguistics. However, aligning these texts at the sentence level is non-trivial. Translations frequently involve sentence splitting, merging, or deletions. Gale and Church propose an automated method to resolve these discrepancies, enabling the creation of large-scale aligned datasets like the Canadian Hansards or UN proceedings.
Methodology
The core hypothesis of the Gale and Church algorithm is that the length of a sentence in one language is highly predictive of the length of its translation.
The Length-Based Model
Rather than relying on word counts or lexical dictionaries, the algorithm uses character counts. Character counts provide a more stable statistical signal with lower variance than word counts. The model assumes that each character in the source language generates a random number of characters in the target language, following a normal distribution.
Dynamic Programming
To find the optimal alignment across a text, the algorithm uses dynamic programming to evaluate various alignment types, including 1-1 matches, deletions (1-0/0-1), and expansions/compressions (2-1/1-2). The algorithm calculates a distance measure based on the probability of a specific alignment given the observed lengths.
Evaluation and Results
The model was tested on two datasets: the UBS Economic Reports (725 human-verified sentences) and the Canadian Hansards (approximately 37 million words).
Accuracy and Precision
On the UBS corpus, the algorithm correctly aligned 96% of the sentences. A key finding was the relationship between the probabilistic score and alignment accuracy. By retaining only the top 80% of alignments—those with the highest confidence—the error rate dropped significantly.
Performance
The algorithm is highly efficient, capable of aligning a year's worth of parliamentary debates (37 million words) in roughly 20 hours on standard workstation hardware.
Discussion and Conclusion
The Gale and Church algorithm demonstrates that robust sentence alignment can be achieved without linguistic knowledge of the target languages. Its primary strengths are its speed and language independence. However, the model has limitations, particularly in handling sentence deletions (1-0 alignments) and complex many-to-many mappings. Future work suggests that a hybrid approach, combining this length-based model with a lexical pass for low-confidence regions, could further improve performance.
Summary updated