Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
Calc-mawps / README.md
prompteus's picture
Upload README.md with huggingface_hub
32fa5d0
|
raw
history blame
2.94 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: original-splits
  features:
    - 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: 902374
      num_examples: 3636
    - name: test
      num_bytes: 128608
      num_examples: 520
    - name: val
      num_bytes: 257241
      num_examples: 1040
  download_size: 522977
  dataset_size: 1288223
configs:
  - config_name: original-splits
    data_files:
      - split: train
        path: original-splits/train-*
      - split: test
        path: original-splits/test-*
      - split: val
        path: original-splits/val-*

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