Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
License:
File size: 3,965 Bytes
b3c08ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a4af81
b3c08ff
6620bbe
b3c08ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a4af81
b3c08ff
 
 
 
 
 
 
 
 
2a4af81
b3c08ff
2a4af81
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
license: apache-2.0
language:
- en
pretty_name: NumGLUE
configs:
- config_name: all
  default: true
  data_files:
  - split: train
    path: data/all/train.parquet
  - split: validation
    path: data/all/validation.parquet
  - split: test
    path: data/all/test.parquet
- config_name: type_1
  data_files:
  - split: train
    path: data/type_1/train.parquet
  - split: validation
    path: data/type_1/validation.parquet
  - split: test
    path: data/type_1/test.parquet
- config_name: type_2
  data_files:
  - split: train
    path: data/type_2/train.parquet
  - split: validation
    path: data/type_2/validation.parquet
  - split: test
    path: data/type_2/test.parquet
- config_name: type_3
  data_files:
  - split: train
    path: data/type_3/train.parquet
  - split: validation
    path: data/type_3/validation.parquet
  - split: test
    path: data/type_3/test.parquet
- config_name: type_4
  data_files:
  - split: train
    path: data/type_4/train.parquet
  - split: validation
    path: data/type_4/validation.parquet
  - split: test
    path: data/type_4/test.parquet
- config_name: type_5
  data_files:
  - split: train
    path: data/type_5/train.parquet
  - split: validation
    path: data/type_5/validation.parquet
  - split: test
    path: data/type_5/test.parquet
- config_name: type_6
  data_files:
  - split: train
    path: data/type_6/train.parquet
  - split: validation
    path: data/type_6/validation.parquet
  - split: test
    path: data/type_6/test.parquet
- config_name: type_7
  data_files:
  - split: train
    path: data/type_7/train.parquet
  - split: validation
    path: data/type_7/validation.parquet
  - split: test
    path: data/type_7/test.parquet
- config_name: type_8
  data_files:
  - split: train
    path: data/type_8/train.parquet
  - split: validation
    path: data/type_8/validation.parquet
  - split: test
    path: data/type_8/test.parquet
---

# NumGLUE

This repository provides NumGLUE in a normalized Parquet layout for convenient loading from Hugging Face Datasets.

The default `all` config is balanced for unified training and evaluation: each NumGLUE type contributes at most 1,000 examples per split. It is ordered with `prettyorder` on `type`, using a 3-example interleaved prefix followed by a seeded shuffle (`seed=42`) of the remaining rows. The `type_1` through `type_8` configs expose each original NumGLUE type separately at full size with the same column schema as `all`.

## Usage

```python
from datasets import load_dataset

dataset = load_dataset("tasksource/num-glue")
type_5 = load_dataset("tasksource/num-glue", "type_5")
```

## Columns

- `id`: deterministic row id built from split and source row index.
- `type`: original NumGLUE type label, from `Type_1` to `Type_8`.
- `question`, `passage`, `statement1`, `statement2`, `options`, `option1`, `option2`: normalized input fields. Missing source fields are null.
- `answer`: simple string answer for direct use.
- `answer_json`: exact JSON serialization of the original `answer` value.
- `answer_type`: original JSON answer type (`int`, `str`, or `dict`).

Original `NumGLUE_dev.json` is exposed as the Hugging Face `validation` split.

## Split Sizes

| config | train | validation | test |
|---|---:|---:|---:|
| all | 6,502 | 3,492 | 4,042 |
| type_1 | 282 | 41 | 81 |
| type_2 | 1,131 | 164 | 325 |
| type_3 | 564 | 81 | 162 |
| type_4 | 770 | 110 | 220 |
| type_5 | 37,949 | 5,421 | 4,835 |
| type_6 | 22,908 | 3,272 | 3,015 |
| type_7 | 6,791 | 970 | 1,691 |
| type_8 | 886 | 126 | 254 |

## Citation

Please cite the NumGLUE paper:

```bibtex
@article{mishra2022numglue,
  title = {NumGLUE: A Suite of Fundamental yet Challenging Mathematical Reasoning Tasks},
  author = {Mishra, Swaroop and Mitra, Arindam and Varshney, Neeraj and Sachdeva, Bhavdeep and Clark, Peter and Baral, Chitta and Kalyan, Ashwin},
  journal = {arXiv preprint arXiv:2204.05660},
  year = {2022},
  url = {https://arxiv.org/abs/2204.05660}
}
```