Calc-mawps / README.md
prompteus's picture
Upload README.md with huggingface_hub
20384c4
|
raw
history blame
No virus
3.69 kB
metadata
language:
  - en
  - ar
license: mit
size_categories:
  - 1K<n<10K
task_categories:
  - text-generation
tags:
  - math world problems
  - math
  - arithmetics
dataset_info:
  - config_name: default
    features:
      - name: id
        dtype: string
      - name: question
        dtype: string
      - name: chain
        dtype: string
      - name: result
        dtype: string
      - name: result_float
        dtype: float64
      - name: equation
        dtype: string
      - name: expression
        dtype: string
    splits:
      - name: test
        num_bytes: 142648
        num_examples: 520
      - name: train
        num_bytes: 1000546
        num_examples: 3636
      - name: validation
        num_bytes: 285321
        num_examples: 1040
    download_size: 630589
    dataset_size: 1428515
  - config_name: original-splits
    features:
      - name: id
        dtype: string
      - name: question
        dtype: string
      - name: chain
        dtype: string
      - name: result
        dtype: string
      - name: result_float
        dtype: float64
      - name: equation
        dtype: string
      - name: expression
        dtype: string
    splits:
      - name: train
        num_bytes: 1000546
        num_examples: 3636
      - name: test
        num_bytes: 142648
        num_examples: 520
      - name: validation
        num_bytes: 285321
        num_examples: 1040
    download_size: 128730
    dataset_size: 1428515
configs:
  - config_name: default
    data_files:
      - split: test
        path: data/test-*
      - split: train
        path: data/train-*
      - split: validation
        path: data/validation-*
  - config_name: original-splits
    data_files:
      - split: train
        path: original-splits/train-*
      - split: test
        path: original-splits/test-*
      - split: validation
        path: original-splits/validation-*

Dataset Card for Calc-MAWPS

Summary

The dataset is a collection of simple math world problems focused on arithmetics. It is derived from https://huggingface.co/datasets/omarxadel/MaWPS-ar.

The main addition in this dataset variant is the chain column. It was created by converting the solution to a simple html-like language that can be easily parsed (e.g. by BeautifulSoup). The data contains 3 types of tags:

  • gadget: A tag whose content is intended to be evaluated by calling an external tool (sympy-based calculator in this case)
  • output: An output of the external tool
  • result: The final answer of the mathematical problem (a number)

Supported Tasks

This variant of the dataset is intended for training Chain-of-Thought reasoning models able to use external tools to enhance the factuality of their responses. This dataset presents in-context scenarios where models can out-source the computations in the reasoning chain to a calculator.

Attributes:

  • question: problem description in English
  • question_arabic: problem description in Arabic
  • chain: series of simple operations (derived from expression) that lead to the solution
  • result: the solution for x as a number or fraction (string)
  • result_float: same as result but converted to a float
  • equation: equation that needs to be solved for x to obtain the result. Usually in a form of "x = ..." but not always.
  • expression: arithmetic expression derived from equation that solves it for x

Content and data splits

Both are consistent with the original source dataset.

Licence

MIT, consistent with the original source dataset linked above.

Related work

If you are interested in related datasets (or models), check out the MU-NLPC organization here on HuggingFace. We have released a few other datasets in a compatible format, and several models that use external calculator during inference.

Cite

If you use this version of dataset in research, please cite the original MAWPS paper. TODO