ape-eval
An Empirical Study of Automatic Post-Editing — Zhang et al. (2022) (arXiv:2209.07759, 2022)
What this evaluates
Evaluates automatic post-editing (APE) models by measuring how effectively they correct machine-translated text to align with human references. It probes the system's ability to fix translation artifacts, preserve source semantics, and adapt to different domains and translation technologies.
Datasets
- WMT'18 SMT — total 26000; splits: train (23000), dev (1000), test (2000)
- SubEdits — total 161413; splits: train (141413), dev (10000), test (10000)
- MLQE-PE — total 9000; splits: train (7000), dev (1000), test (1000)
Metrics
BLEU (primary) — range: [0, 1]
- Standard n-gram precision with a brevity penalty to penalize overly short outputs. Computed using SacreBLEU.
ChrF — range: [0, 1]
- Character n-gram F-score measuring overlap between predicted and reference character sequences. Computed using SacreBLEU.
TER — range: [0, 1]
- Translation Edit Rate: the minimum number of edits (insertions, deletions, substitutions, shifts) required to change the prediction into the reference, normalized by reference length. Computed using TERCOM.
Input / output format
Input: Machine-translated sentence (mt) to be post-edited.
Output: Corrected post-edited sentence (pe).
Scoring recipe
import sacrebleu
import tercom
def compute_metrics(predictions, references):
bleu = sacrebleu.corpus_bleu(predictions, references).score
chrf = sacrebleu.corpus_chrf(predictions, references).score
ter = tercom.compute_ter(predictions, references)
return {'bleu': bleu, 'chrf': chrf, 'ter': ter}
Common pitfalls
- Confusing the APE input with the original source text; models must take the machine-translated output (mt) as input, not the source.
- Using inconsistent tokenization or BLEU implementations (e.g., Moses vs. SacreBLEU), which causes non-comparable scores across studies.
- Ignoring domain mismatch when comparing results, as performance drops significantly when training and test domains differ (e.g., IT vs. Subtitles vs. Wikipedia).
Evidence (verbatim from paper)
Following previous research on APE, we evaluate the output of APE systems with three different automatic metrics, BLEU (Papineni et al., 2002), ChrF (Popovic, 2015) and TER (Snover et al., 2006). We compute BLEU and ChrF with SacreBLEU (Post, 2018), and TER with TERCOM.
Citation
@misc{zhang2022empirical,
title={An Empirical Study of Automatic Post-Editing},
author={Zhang et al. (2022)},
year={2022},
note={arXiv:2209.07759}
}
1---2name: ape-eval3description: Evaluates automatic post-editing (APE) models by measuring how effectively they correct machine-translated text to align with human references. It probes the system's ability to fix translation artifacts, preserve source semantics, and adapt to different domains and translation technologies. Use when the user wants to benchmark on WMT'18 SMT, SubEdits, MLQE-PE, or asks about evaluating this task. Reports BLEU.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/ape-eval6 skill_kind: dataset_eval7 source_arxiv: 2209.077598 bibtex_key: zhang2022empirical9 confidence: high10---1112# ape-eval1314> An Empirical Study of Automatic Post-Editing — Zhang et al. (2022) (arXiv:2209.07759, 2022)1516## What this evaluates1718Evaluates automatic post-editing (APE) models by measuring how effectively they correct machine-translated text to align with human references. It probes the system's ability to fix translation artifacts, preserve source semantics, and adapt to different domains and translation technologies.1920## Datasets2122- **WMT'18 SMT** — total 26000; splits: train (23000), dev (1000), test (2000)23- **SubEdits** — total 161413; splits: train (141413), dev (10000), test (10000)24- **MLQE-PE** — total 9000; splits: train (7000), dev (1000), test (1000)2526## Metrics2728- `BLEU` **(primary)** — range: [0, 1]29 - Standard n-gram precision with a brevity penalty to penalize overly short outputs. Computed using SacreBLEU.30- `ChrF` — range: [0, 1]31 - Character n-gram F-score measuring overlap between predicted and reference character sequences. Computed using SacreBLEU.32- `TER` — range: [0, 1]33 - Translation Edit Rate: the minimum number of edits (insertions, deletions, substitutions, shifts) required to change the prediction into the reference, normalized by reference length. Computed using TERCOM.3435## Input / output format3637**Input**: Machine-translated sentence (mt) to be post-edited.3839**Output**: Corrected post-edited sentence (pe).4041## Scoring recipe4243```python44import sacrebleu45import tercom4647def compute_metrics(predictions, references):48 bleu = sacrebleu.corpus_bleu(predictions, references).score49 chrf = sacrebleu.corpus_chrf(predictions, references).score50 ter = tercom.compute_ter(predictions, references)51 return {'bleu': bleu, 'chrf': chrf, 'ter': ter}52```5354## Common pitfalls5556- Confusing the APE input with the original source text; models must take the machine-translated output (mt) as input, not the source.57- Using inconsistent tokenization or BLEU implementations (e.g., Moses vs. SacreBLEU), which causes non-comparable scores across studies.58- Ignoring domain mismatch when comparing results, as performance drops significantly when training and test domains differ (e.g., IT vs. Subtitles vs. Wikipedia).5960## Evidence (verbatim from paper)6162> Following previous research on APE, we evaluate the output of APE systems with three different automatic metrics, BLEU (Papineni et al., 2002), ChrF (Popovic, 2015) and TER (Snover et al., 2006). We compute BLEU and ChrF with SacreBLEU (Post, 2018), and TER with TERCOM.6364## Citation6566```bibtex67@misc{zhang2022empirical,68 title={An Empirical Study of Automatic Post-Editing},69 author={Zhang et al. (2022)},70 year={2022},71 note={arXiv:2209.07759}72}73```7475- arXiv: 2209.07759