Skip to content
advancedtext

Math Question Answering and Category Classification

Answering SAT-style mathematical questions with category classification, covering closed-vocabulary algebra, open-vocabulary algebra, and geometry. Based on SemEval-2019 Task 10 (Math QA).

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/2019/task10-math-qa
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
# Math Question Answering and Category Classification
# Based on Hopkins et al., SemEval 2019
# Paper: https://aclanthology.org/S19-2153/
# Dataset: https://competitions.codalab.org/competitions/20013
#
# This task asks annotators to solve SAT-style mathematical questions and
# classify them by category. Annotators provide the answer to the question
# (numeric or multiple-choice) and identify its mathematical category.
#
# Category Labels (following the shared task's three-way taxonomy):
# - Closed-vocabulary Algebra: symbolic algebra questions using a restricted
#   vocabulary (equations, expressions, functions, polynomials)
# - Open-vocabulary Algebra: algebra word problems requiring reasoning over
#   free-form natural language
# - Geometry: shapes, areas, angles, and spatial reasoning (may include a diagram)

annotation_task_name: "Math Question Answering"
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: text
    name: answer
    description: "Provide the answer to the question (a number, or the letter of the correct multiple-choice option)."

  - annotation_type: radio
    name: math_category
    description: "Which category does this question belong to?"
    labels:
      - name: "Closed-vocabulary Algebra"
        tooltip: "Symbolic algebra questions using a restricted vocabulary (equations, expressions, functions, polynomials)"
        key_value: "1"
      - name: "Open-vocabulary Algebra"
        tooltip: "Algebra word problems requiring reasoning over free-form natural language"
        key_value: "2"
      - name: "Geometry"
        tooltip: "Questions involving shapes, areas, angles, or spatial reasoning (may include a diagram)"
        key_value: "3"

annotation_instructions: |
  You will be shown a SAT-style math question along with its difficulty level. Your task is to:
  1. Solve the question and provide the answer (a number, or the letter of the correct multiple-choice option) in the text field.
  2. Classify the question into one of three categories: Closed-vocabulary Algebra, Open-vocabulary Algebra, or Geometry.

user_config:
  allow_all_users: true
max_annotations_per_user: 50
num_annotators_per_item: 2

Sample Data

json
[
  {
    "id": "mathqa_001",
    "text": "If 3x + 7 = 22, what is the value of x?",
    "difficulty": "Easy"
  },
  {
    "id": "mathqa_002",
    "text": "Suppose 3x + y = 15, where x is a positive integer. What is the difference between the largest possible value of y and the smallest possible value of x, assuming that y is also a positive integer?",
    "difficulty": "Medium"
  }
]

// ... and 8 more items

Dataset & paper

Hopkins et al., SemEval 2019

Citation (BibTeX)

bibtex
@inproceedings{hopkins-etal-2019-semeval,
    title = "{S}em{E}val-2019 Task 10: Math Question Answering",
    author = "Hopkins, Mark and Le Bras, Ronan and Petrescu-Prahova, Cristian and Stanovsky, Gabriel and Hajishirzi, Hannaneh and Koncel-Kedziorski, Rik",
    booktitle = "Proceedings of the 13th International Workshop on Semantic Evaluation",
    month = jun,
    year = "2019",
    address = "Minneapolis, Minnesota, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/S19-2153",
    doi = "10.18653/v1/S19-2153",
    pages = "893--899"
}

Details

Annotation Types

textradio

Domain

SemEvalNLPMathematicsQuestion Answering

Use Cases

Math QAProblem ClassificationEducational Assessment

Tags

semevalsemeval-2019shared-taskmathquestion-answeringeducation

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)