Skip to content
intermediatetext

NumEval - Numeral-Aware Language Understanding and Generation

Numeral-aware language understanding and generation across the five NumEval datasets: Quantitative Prediction (QP), Quantitative Natural Language Inference (QNLI), Quantitative Question Answering (QQA), reading comprehension of numerals (NQuAD), and numeral-aware headline generation (Num-HG). Based on SemEval-2024 Task 7 (NumEval).

Try it live — no install

Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.

Run live in your browser

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/semeval/2024/task07-numeval
potato start config.yaml

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# NumEval - Numeral-Aware Language Understanding and Generation
# Based on Chen et al., SemEval-2024 Task 7 (NumEval)
# Paper: https://aclanthology.org/2024.semeval-1.213/
# Task site / datasets: https://sites.google.com/view/numeval/numeval
#
# NumEval bundles five datasets across three tasks:
#   1. Quantitative Understanding (Quantitative 101, English)
#        - QP   : Quantitative Prediction   -> predict the magnitude of a masked number
#        - QNLI : Quantitative NLI          -> entailment between number-bearing sentences
#        - QQA  : Quantitative Question Answering -> pick the correct option
#   2. Reading Comprehension of the Numerals in Text (NQuAD, Chinese)
#        - choose the number that best fills a blank in the question stem
#   3. Numeral-Aware Headline Generation (Num-HG, English)
#        - Numerical Reasoning : compute the number for the masked headline slot
#        - Headline Generation : write a numeral-aware headline
# Each sample item carries a "subtask" field; annotators fill the fields
# relevant to that subtask and may leave the others blank.

annotation_task_name: "NumEval - Numeral-Aware Language Understanding and Generation"
task_dir: "."

data_files:
  - sample-data.json

item_properties:
  id_key: "id"
  text_key: "text"

output_annotation_dir: "annotation_output/"
export_annotation_format: "jsonl"

port: 8000

annotation_schemes:
  - annotation_type: radio
    name: subtask
    description: "Which NumEval subtask does this item belong to?"
    labels:
      - name: "QP (Quantitative Prediction)"
        tooltip: "Predict the magnitude of the masked number in the sentence."
      - name: "QNLI (Quantitative NLI)"
        tooltip: "Decide the inference relation between two number-bearing sentences."
      - name: "QQA (Quantitative Question Answering)"
        tooltip: "Compare the numbers and choose the correct option."
      - name: "Reading Comprehension (NQuAD)"
        tooltip: "Select the number that best fills the blank in the question stem, given the news article."
      - name: "Headline Generation (Num-HG)"
        tooltip: "Reason about the numeral and/or write a numeral-aware headline for the news article."

  - annotation_type: radio
    name: qnli_label
    description: "QNLI only: inference relation between the two sentences."
    labels:
      - name: "Entailment"
        tooltip: "The second sentence is entailed by the first."
      - name: "Contradiction"
        tooltip: "The two sentences numerically contradict each other."
      - name: "Neutral"
        tooltip: "Neither entailment nor contradiction holds."

  - annotation_type: radio
    name: qqa_answer
    description: "QQA only: which option answers the question?"
    labels:
      - "Option 1"
      - "Option 2"

  - annotation_type: radio
    name: rc_answer
    description: "Reading Comprehension (NQuAD) only: which candidate number fills the blank?"
    labels:
      - "A"
      - "B"
      - "C"
      - "D"

  - annotation_type: number
    name: predicted_number
    description: "QP / Numerical Reasoning: the predicted or computed number for the masked slot."

  - annotation_type: text
    name: generated_headline
    description: "Headline Generation only: write a concise numeral-aware headline for the article."

  - annotation_type: text
    name: reasoning
    description: "Optional: briefly explain how you derived the answer."

annotation_instructions: |
  NumEval covers five numeral-aware datasets. Each item is tagged with a subtask;
  fill in only the fields that apply and leave the rest blank.
  1. Read the text and confirm the subtask label.
  2. QP: predict the magnitude of the masked number (enter your best estimate as the number).
  3. QNLI: choose Entailment, Contradiction, or Neutral.
  4. QQA: choose Option 1 or Option 2.
  5. Reading Comprehension (NQuAD): choose the candidate number (A-D) that fills the blank.
  6. Headline Generation (Num-HG): for numerical reasoning enter the computed number;
     for headline generation write a numeral-aware headline.
  7. Optionally record your reasoning.

user_config:
  allow_all_users: true
max_annotations_per_user: 50
num_annotators_per_item: 2

Sample Data

json
[
  {
    "id": "numeval_qp_001",
    "subtask": "QP (Quantitative Prediction)",
    "text": "FED'S DUDLEY REPEATS EXPECTS GDP GROWTH TO PICK UP IN 2014, FROM [Masked] PCT POST-RECESSION AVERAGE\n\nPredict the magnitude of the masked number."
  },
  {
    "id": "numeval_qp_002",
    "subtask": "QP (Quantitative Prediction)",
    "text": "COMPANY SHARES CLOSED [Masked] PERCENT LOWER AFTER THE EARNINGS MISS, WIPING BILLIONS OFF ITS MARKET VALUE\n\nPredict the magnitude of the masked number."
  }
]

// ... and 8 more items

Dataset & paper

Chen et al., SemEval-2024 (2024.semeval-1.213)

Citation (BibTeX)

bibtex
@inproceedings{chen-etal-2024-semeval,
    title = "{S}em{E}val-2024 Task 7: Numeral-Aware Language Understanding and Generation",
    author = "Chen, Chung-chi and Huang, Jian-tao and Huang, Hen-hsen and Takamura, Hiroya and Chen, Hsin-hsi",
    booktitle = "Proceedings of the 18th International Workshop on Semantic Evaluation (SemEval-2024)",
    month = jun,
    year = "2024",
    address = "Mexico City, Mexico",
    publisher = "Association for Computational Linguistics",
    pages = "1482--1491",
    doi = "10.18653/v1/2024.semeval-1.213"
}

Details

Annotation Types

radionumbertext

Domain

SemEvalNLPNumeracyLanguage Understanding

Use Cases

Numerical ReasoningNumeral UnderstandingQuantitative NLP

Tags

semevalsemeval-2024shared-tasknumeracynumevalnumerical-reasoning

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)