How to check parallel corpus quality for machine translation
A parallel corpus pairs text in two or more languages that is intended to be translation-equivalent. Before using it to train a machine-translation system, check that the sentences actually correspond, the languages are correct, and material from the same document has not leaked into evaluation data. A larger dataset is not automatically better parallel data.
How to check parallel corpus quality for machine translation
A parallel corpus pairs text in two or more languages that is intended to be translation-equivalent. Before using it to train a machine-translation system, check that the sentences actually correspond, the languages are correct, and material from the same document has not leaked into evaluation data. A larger dataset is not automatically better parallel data.
Distinguish parallel text from comparable text
A parallel pair consists of sentences considered to be translations of one another. A collection of documents on similar topics that are not translations is a comparable corpus. Finding two documents on the web does not by itself prove that they are translations. The WMT parallel-data curation task separates the work of finding useful training pairs in web-collected material into document alignment, sentence alignment, language identification, and pair filtering.
Review collected text in sequence
**Record language and provenance.** Preserve each document's language, URL or source, collection date, license, domain, and document identifier. OPUS provides separate documentation and versions for different corpora, so check the conditions and citation guidance for the specific subcorpus you downloaded.
**Align documents first.** Find candidate translated documents using titles, URLs, document structure, or links between multilingual pages. Do not infer a translation relationship just because pages share a website template or discuss the same topic.
**Align at sentence level.** After sentence segmentation, use length, order, and language-pair alignment scores to find one-to-one or, when necessary, many-to-many correspondences. Sentence boundaries can differ and a sentence may be missing, so do not pair sentences solely because they have the same line number.
**Filter noise with independent signals.** Language identification, length ratios, sentence-embedding similarity, word alignment, fluency, and quality-estimation scores each miss different kinds of errors. The WMT 2023 data-curation study combined several such signals. Do not treat one automatic score as proof that a translation is accurate. Have people read samples by language pair and domain to check thresholds.
**Check duplicates and split leakage.** Look for duplicated sentences and for parts of the same document appearing in both training and evaluation sets. When possible, split by document or original source, and record the review results and removal rules.
How to recognize an alignment error
The pairs below are illustrative examples.
| Source | Candidate translation | Assessment |
|---|---|---|
| 비밀번호를 재설정하려면 이메일을 확인하세요. | To reset your password, check your email. | A candidate pair with corresponding meaning |
| 비밀번호를 재설정하려면 이메일을 확인하세요. | Our company was founded in 1998. | A misaligned pair: both sentences may be grammatical and in the expected language, but they are not translations |
The second pair can be fluent in both languages and still have no translation relationship. Conversely, an aligner may give a correct pair a low score because of differences in a few words or punctuation marks. Use automatic filters to prioritize large datasets, then review samples before and after filtering by language pair and domain. The impact of alignment errors depends on the data and training conditions; do not assume that removing every noisy pair always improves a model.
Choose a corpus for your use case
**Target language pair and direction:** Check the source-to-target order, writing system, and regional variants.
**Domain and style:** Consider whether general news data fits product documentation or conversational translation.
**How the original and translation were produced:** Distinguish human translation, machine translation, subtitles, and parallel web pages.
**License and citation:** Public availability does not necessarily permit commercial use. Check version-specific terms and conditions for the source material.
**Evaluation separation:** Record the split method so the same document or repeated sentence does not appear across training, development, and test sets.
Finally, inspect a small sample for document- and sentence-alignment errors. Compare whether the chosen filters disproportionately discard sentences of certain lengths, topics, or writing systems. For reproducible, fit-for-purpose training data, record not only the amount retained but also the language pairs, domains, alignment quality, and evidence for licensing.
References
Tiedemann, “Parallel Data, Tools and Interfaces in OPUS” (2012), OPUS citation and resource documentation: https://github.com/Helsinki-NLP/OPUS
WMT 2023 Shared Task on Parallel Data Curation: https://www2.statmt.org/wmt23/data-task.html
Steingrimsson et al., “Effectively Aligning and Filtering Parallel Corpora under Sparse Data Conditions” (ACL 2020): https://aclanthology.org/2020.acl-srw.25/
Steingrimsson, “A Sentence Alignment Approach to Document Alignment and Multi-faceted Filtering…” (WMT 2023): https://aclanthology.org/2023.wmt-1.38/