Contrastive ESA Error Spans for Competing Translations
Mark minor and major error spans in three German translations of one English sentence and score each from 0 to 100 with error_span and slider.
Get This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/evaluation/cesa-contrastive-translation-evaluation
potato start config.yamlAbout this dataset
Contrastive Error Span Annotation (cESA) is a method for evaluating machine translation in which one source text is shown with several translations side by side. Vilém Zouhar and colleagues published the method at the Eleventh Conference on Machine Translation. The code is on GitHub under an MIT license, with Pearmut as the reference tool.
Annotators mark error spans in each translation as minor or major and give each translation a score from 0 to 100 in steps of 5. The guideline defines a minor error as an imperfection or stylistic issue that does not affect the core message, and a major error as one that confuses meaning, misrepresents the source, or violates the message. The design shows three translations per screen, where the paper shows up to four, and one item is one segment rather than a whole document.
The error_span schemes declare no error_types, as cESA marks severity only, so the popup asks for severity alone. The design requires Potato 2.15.0 or later. The severity weights in the popup are the design's own, and the paper's missing-text tag and comment box are left out. The English sources and German translations are illustrative, with deliberate errors in some translations.
- Translations per screen
- 3 (the paper shows up to 4)
- Score step
- 5 points on a 0 to 100 scale
- Sample items in this design
- 10 illustrative English-German segments
Configuration File
This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# Contrastive Error Span Annotation (cESA) for machine translation
#
# Paper: Zouhar et al. (2026), "Contrastive ESA: Human Evaluation of Multiple
# Translations at Once", Proceedings of the Eleventh Conference on Machine
# Translation, pp. 860-872. DOI 10.18653/2026.wmt-main.47
# https://aclanthology.org/2026.wmt-main.47/
# Code and data: https://github.com/zouharvi/cESA (MIT). Reference tool: Pearmut.
#
# Requires Potato 2.15.0 or later (error_span without error_types).
#
# Protocol (paper Section 3 and Appendix A): one source document is shown with k
# translations side by side. "The task of annotators is to mark error spans in
# the translations with minor or major severity and assign a final score from 0%
# to 100% to each translation", in steps of 5%.
# Quoted guideline: "Minor error: Imperfections or stylistic issues that do not
# impact the core message (e.g., awkward phrasing). Major error: Confuses
# meaning, misrepresents the source, or violates the message."
# Score anchors: 85-100 Very Good; 65-80 Good; 45-60 Acceptable;
# 25-40 Borderline; 0-20 Not acceptable.
#
# Adaptations:
# - Sample items are illustrative sentences written for this design, not WMT25 data. The English
# sources and the German translations (some with planted errors) were written for the design.
# - cESA marks no error type, so the error_span schemes declare no error_types and the
# popup asks for severity alone.
# - Three translations per screen (the paper shows up to four). Each is an
# error_span scheme with its own source_field plus a 0-100 slider.
# - One item is one segment; the paper annotates whole documents of segments.
# - The slider starts at 50 because Potato sliders need a starting value.
# - The error popup shows the severity weights (-1 and -5), which are this
# design's own and not in the paper. The paper's [MISSING] tag for omitted text
# and its comment box are left out.
annotation_task_name: "Contrastive error span annotation of translations"
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl
data_files:
- sample-data.json
item_properties:
id_key: id
text_key: source
user_config:
allow_all_users: true
users: []
annotation_instructions: |
Read the source and the competing translations. Highlight every error in each translation, then rate each translation from 0 to 100.
Minor error: imperfections or stylistic issues that do not impact the core message. Major error: confuses meaning, misrepresents the source, or violates the message.
Rating scale: 85-100 very good, 65-80 good, 45-60 acceptable, 25-40 borderline, 0-20 not acceptable.
annotation_schemes:
- annotation_type: error_span
name: errors_a
description: "Translation A: select text containing an error, then set its severity."
source_field: translation_a
severities:
- name: Minor
weight: -1
- name: Major
weight: -5
show_score: false
- annotation_type: slider
name: score_a
description: "Translation A: overall score (0 = not acceptable, 100 = perfect)"
min_value: 0
max_value: 100
starting_value: 50
step: 5
- annotation_type: error_span
name: errors_b
description: "Translation B: select text containing an error, then set its severity."
source_field: translation_b
severities:
- name: Minor
weight: -1
- name: Major
weight: -5
show_score: false
- annotation_type: slider
name: score_b
description: "Translation B: overall score (0 = not acceptable, 100 = perfect)"
min_value: 0
max_value: 100
starting_value: 50
step: 5
- annotation_type: error_span
name: errors_c
description: "Translation C: select text containing an error, then set its severity."
source_field: translation_c
severities:
- name: Minor
weight: -1
- name: Major
weight: -5
show_score: false
- annotation_type: slider
name: score_c
description: "Translation C: overall score (0 = not acceptable, 100 = perfect)"
min_value: 0
max_value: 100
starting_value: 50
step: 5
Sample Data
[
{
"id": "cesa_001",
"source": "The very hungry caterpillar hatched from the egg and immediately began looking for food.",
"translation_a": "Die sehr hungrige Raupe schlüpfte aus dem Ei und begann sofort, nach Futter zu suchen.",
"translation_b": "Der sehr hungrige Regenwurm schlüpfte aus dem Ei und begann sofort mit der Suche nach Nahrung.",
"translation_c": "Die sehr hungrige Raupe schlüpfte aus dem Ei und danach suchte sie Essen irgendwann."
},
{
"id": "cesa_002",
"source": "On Monday he ate one apple, but he was still hungry.",
"translation_a": "Am Montag aß er einen Apfel, aber er hatte immer noch Hunger.",
"translation_b": "Am Montag aß er zwei Äpfel, aber er war immer noch hungrig.",
"translation_c": "Montag Konsum von einem Apfel. Hunger bleibt bestehen."
}
]
// ... and 8 more itemsGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/evaluation/cesa-contrastive-translation-evaluation
potato start config.yamlDataset & paper
Zouhar et al., WMT 2026
- Paper DOI
- 10.18653/2026.wmt-main.47
Citation (BibTeX)
@inproceedings{zouhar-etal-2026-contrastive,
title = "Contrastive {ESA}: Human Evaluation of Multiple Translations at Once",
author = "Zouhar, Vil{\'e}m and
Grundkiewicz, Roman and
Rajaee, Sara and
Riley, Parker and
Popel, Martin and
Bawden, Rachel and
Koehn, Philipp and
Carpuat, Marine and
Kocmi, Tom",
editor = "Haddow, Barry and
Kocmi, Tom and
Koehn, Philipp and
Monz, Christof",
booktitle = "Proceedings of the Eleventh Conference on Machine Translation",
month = oct,
year = "2026",
address = "Budapest, Hungary",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.wmt-main.47/",
doi = "10.18653/2026.wmt-main.47",
pages = "860--872",
ISBN = "979-8-89176-474-3"
}Details
Annotation Types
Domain
Use Cases
Tags
Found an issue or want to improve this design?
Open an Issue(opens in a new tab)Related Designs
MQM Machine Translation Error Annotation
Expert MQM (Multidimensional Quality Metrics) error annotation for machine translation based on Freitag, Foster, Grangier, Ratnakar, Tan, and Macherey (TACL 2021). Professional translators mark error spans in MT output with document context, assigning each error a category/sub-category from a broad-coverage MQM hierarchy (Accuracy, Fluency, Terminology, Style, Locale convention, plus Other, Source error, and Non-translation) and a severity (Major, Minor, or Neutral). This is the full-taxonomy expert protocol; it complements evaluation/esa-mt-error-spans, the lighter-weight ESA protocol (Kocmi et al., WMT 2024) in which annotators mark untyped minor/major spans plus a scalar score.
MQM Re-Annotation of Machine Translation Errors
Correct earlier MQM error spans in English-German translations with error_span and pre_annotation. The ten segments are illustrative and copy no WMT rows.
LitEval Literary Translation MQM Error Spans
Mark MQM error spans, rate quality 0-6, and pick the best and worst of three German translations of English literature. Translations are illustrative.