Skip to content
intermediateevaluation

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

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/evaluation/cesa-contrastive-translation-evaluation
potato start config.yaml

About 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
# 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

json
[
  {
    "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 items

Dataset & paper

Zouhar et al., WMT 2026

Paper DOI
10.18653/2026.wmt-main.47

Citation (BibTeX)

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

error_spanslider

Domain

Machine TranslationComputational LinguisticsEvaluation

Use Cases

Translation Quality EvaluationError Span AnnotationContrastive Evaluation

Tags

cesacontrastive esamachine translationerror span annotationwmtenglish-german

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)