Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Annotations Creators:
crowdsourced
Source Datasets:
original
ArXiv:
Tags:
License:
albertvillanova HF staff commited on
Commit
33301c6
1 Parent(s): a5c302c

Convert dataset to Parquet (#2)

Browse files

- Convert dataset to Parquet (823a49d066db425fce2a11451e803dadbf9af185)
- Add tokenized data files (36dbfeb9ef9b278ae4de6dcfd83c4d400bba59b9)
- Delete loading script (3049d08b1c9e6477c77356b5906e2812d1cbfdf7)
- Delete legacy dataset_infos.json (ffb49d40e3981ed6cd248dcd16e38281e574abdb)

README.md CHANGED
@@ -33,16 +33,16 @@ dataset_info:
33
  dtype: string
34
  splits:
35
  - name: train
36
- num_bytes: 42333259
37
  num_examples: 97467
38
  - name: test
39
- num_bytes: 116779
40
  num_examples: 254
41
  - name: validation
42
- num_bytes: 118636
43
  num_examples: 254
44
- download_size: 47833135
45
- dataset_size: 42568674
46
  - config_name: tokenized
47
  features:
48
  - name: question
@@ -55,16 +55,34 @@ dataset_info:
55
  dtype: string
56
  splits:
57
  - name: train
58
- num_bytes: 46493843
59
  num_examples: 97467
60
  - name: test
61
- num_bytes: 126283
62
  num_examples: 254
63
  - name: validation
64
- num_bytes: 128873
65
  num_examples: 254
66
- download_size: 52003894
67
- dataset_size: 46748999
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ---
69
 
70
  # Dataset Card for AQUA-RAT
33
  dtype: string
34
  splits:
35
  - name: train
36
+ num_bytes: 42333059
37
  num_examples: 97467
38
  - name: test
39
+ num_bytes: 116759
40
  num_examples: 254
41
  - name: validation
42
+ num_bytes: 118616
43
  num_examples: 254
44
+ download_size: 25568676
45
+ dataset_size: 42568434
46
  - config_name: tokenized
47
  features:
48
  - name: question
55
  dtype: string
56
  splits:
57
  - name: train
58
+ num_bytes: 46493643
59
  num_examples: 97467
60
  - name: test
61
+ num_bytes: 126263
62
  num_examples: 254
63
  - name: validation
64
+ num_bytes: 128853
65
  num_examples: 254
66
+ download_size: 26429873
67
+ dataset_size: 46748759
68
+ configs:
69
+ - config_name: raw
70
+ data_files:
71
+ - split: train
72
+ path: raw/train-*
73
+ - split: test
74
+ path: raw/test-*
75
+ - split: validation
76
+ path: raw/validation-*
77
+ default: true
78
+ - config_name: tokenized
79
+ data_files:
80
+ - split: train
81
+ path: tokenized/train-*
82
+ - split: test
83
+ path: tokenized/test-*
84
+ - split: validation
85
+ path: tokenized/validation-*
86
  ---
87
 
88
  # Dataset Card for AQUA-RAT
aqua_rat.py DELETED
@@ -1,130 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """AQUA-RAT (Algebra Question Answering with Rationales) Dataset"""
16
-
17
-
18
- import json
19
-
20
- import datasets
21
-
22
-
23
- _CITATION = """\
24
- @InProceedings{ACL,
25
- title = {Program induction by rationale generation: Learning to solve and explain algebraic word problems},
26
- authors={Ling, Wang and Yogatama, Dani and Dyer, Chris and Blunsom, Phil},
27
- year={2017}
28
- }
29
- """
30
-
31
- _DESCRIPTION = """\
32
- A large-scale dataset consisting of approximately 100,000 algebraic word problems.
33
- The solution to each question is explained step-by-step using natural language.
34
- This data is used to train a program generation model that learns to generate the explanation,
35
- while generating the program that solves the question.
36
- """
37
-
38
- _LICENSE = """\
39
- Copyright 2017 Google Inc.
40
-
41
- Licensed under the Apache License, Version 2.0 (the "License");
42
- you may not use this file except in compliance with the License.
43
- You may obtain a copy of the License at
44
-
45
- http://www.apache.org/licenses/LICENSE-2.0
46
-
47
- Unless required by applicable law or agreed to in writing, software
48
- distributed under the License is distributed on an "AS IS" BASIS,
49
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- See the License for the specific language governing permissions and
51
- limitations under the License.
52
- """
53
-
54
- _BASE_URL = "https://raw.githubusercontent.com/deepmind/AQuA/master/"
55
- _URLs = {
56
- "raw": {"train": _BASE_URL + "train.json", "dev": _BASE_URL + "dev.json", "test": _BASE_URL + "test.json"},
57
- "tokenized": {
58
- "train": _BASE_URL + "train.tok.json",
59
- "dev": _BASE_URL + "dev.tok.json",
60
- "test": _BASE_URL + "test.tok.json",
61
- },
62
- }
63
-
64
-
65
- class AquaRat(datasets.GeneratorBasedBuilder):
66
- """AQUA-RAT (Algebra Question Answering with Rationales) Dataset"""
67
-
68
- VERSION = datasets.Version("1.0.0")
69
-
70
- BUILDER_CONFIGS = [
71
- datasets.BuilderConfig(name="raw", description="Untokenized Dataset"),
72
- datasets.BuilderConfig(name="tokenized", description="Tokenized Dataset"),
73
- ]
74
-
75
- DEFAULT_CONFIG_NAME = "raw"
76
-
77
- def _info(self):
78
- features = datasets.Features(
79
- {
80
- "question": datasets.Value("string"),
81
- "options": datasets.features.Sequence(datasets.Value("string")),
82
- "rationale": datasets.Value("string"),
83
- "correct": datasets.Value("string"),
84
- }
85
- )
86
- return datasets.DatasetInfo(
87
- description=_DESCRIPTION,
88
- features=features,
89
- supervised_keys=None,
90
- homepage="https://github.com/deepmind/AQuA",
91
- license=_LICENSE,
92
- citation=_CITATION,
93
- )
94
-
95
- def _split_generators(self, dl_manager):
96
- """Returns SplitGenerators."""
97
- my_urls = _URLs[self.config.name]
98
- data_paths = dl_manager.download(my_urls)
99
- return [
100
- datasets.SplitGenerator(
101
- name=datasets.Split.TRAIN,
102
- gen_kwargs={
103
- "filepath": data_paths["train"],
104
- "split": "train",
105
- },
106
- ),
107
- datasets.SplitGenerator(
108
- name=datasets.Split.TEST,
109
- gen_kwargs={"filepath": data_paths["test"], "split": "test"},
110
- ),
111
- datasets.SplitGenerator(
112
- name=datasets.Split.VALIDATION,
113
- gen_kwargs={
114
- "filepath": data_paths["dev"],
115
- "split": "dev",
116
- },
117
- ),
118
- ]
119
-
120
- def _generate_examples(self, filepath, split):
121
- """Yields examples."""
122
- with open(filepath, encoding="utf-8") as f:
123
- for id_, row in enumerate(f):
124
- data = json.loads(row)
125
- yield id_, {
126
- "question": data["question"],
127
- "options": data["options"],
128
- "rationale": data["rationale"],
129
- "correct": data["correct"],
130
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"raw": {"description": "A large-scale dataset consisting of approximately 100,000 algebraic word problems. \nThe solution to each question is explained step-by-step using natural language. \nThis data is used to train a program generation model that learns to generate the explanation, \nwhile generating the program that solves the question.\n", "citation": "@InProceedings{ACL,\ntitle = {Program induction by rationale generation: Learning to solve and explain algebraic word problems},\nauthors={Ling, Wang and Yogatama, Dani and Dyer, Chris and Blunsom, Phil},\nyear={2017}\n}\n", "homepage": "https://github.com/deepmind/AQuA", "license": "Copyright 2017 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "options": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "rationale": {"dtype": "string", "id": null, "_type": "Value"}, "correct": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "aqua_rat", "config_name": "raw", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 42333259, "num_examples": 97467, "dataset_name": "aqua_rat"}, "test": {"name": "test", "num_bytes": 116779, "num_examples": 254, "dataset_name": "aqua_rat"}, "validation": {"name": "validation", "num_bytes": 118636, "num_examples": 254, "dataset_name": "aqua_rat"}}, "download_checksums": {"https://raw.githubusercontent.com/deepmind/AQuA/master/train.json": {"num_bytes": 47570935, "checksum": "35b70c7cb1660c34d302bb932dfd3656ce3d05e8c982c797767fec31d7d1e0ba"}, "https://raw.githubusercontent.com/deepmind/AQuA/master/dev.json": {"num_bytes": 132008, "checksum": "4a52301d8a49ae0b286f8e697f9c5da1b109b247b825b47b4c6de34312dceec5"}, "https://raw.githubusercontent.com/deepmind/AQuA/master/test.json": {"num_bytes": 130192, "checksum": "de41581881ef95c5588c44ddc701c77fd480839241dd422a0d181262af24520c"}}, "download_size": 47833135, "post_processing_size": null, "dataset_size": 42568674, "size_in_bytes": 90401809}, "tokenized": {"description": "A large-scale dataset consisting of approximately 100,000 algebraic word problems. \nThe solution to each question is explained step-by-step using natural language. \nThis data is used to train a program generation model that learns to generate the explanation, \nwhile generating the program that solves the question.\n", "citation": "@InProceedings{ACL,\ntitle = {Program induction by rationale generation: Learning to solve and explain algebraic word problems},\nauthors={Ling, Wang and Yogatama, Dani and Dyer, Chris and Blunsom, Phil},\nyear={2017}\n}\n", "homepage": "https://github.com/deepmind/AQuA", "license": "Copyright 2017 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "options": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "rationale": {"dtype": "string", "id": null, "_type": "Value"}, "correct": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "aqua_rat", "config_name": "tokenized", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 46493843, "num_examples": 97467, "dataset_name": "aqua_rat"}, "test": {"name": "test", "num_bytes": 126283, "num_examples": 254, "dataset_name": "aqua_rat"}, "validation": {"name": "validation", "num_bytes": 128873, "num_examples": 254, "dataset_name": "aqua_rat"}}, "download_checksums": {"https://raw.githubusercontent.com/deepmind/AQuA/master/train.tok.json": {"num_bytes": 51721975, "checksum": "5b2fbd7e2216455c7c419bf7e6628d5f3d88a2c96fb412d965b97b85bf96cbab"}, "https://raw.githubusercontent.com/deepmind/AQuA/master/dev.tok.json": {"num_bytes": 142236, "checksum": "16baf52dde06481b0cf92150d6e4caae2d80446138aba0362a30e9254d1b8658"}, "https://raw.githubusercontent.com/deepmind/AQuA/master/test.tok.json": {"num_bytes": 139683, "checksum": "08e0cb7dad55ac0d4ef314c5fd2335e118e21749c4be9cd4ef0e5b27f11630d8"}}, "download_size": 52003894, "post_processing_size": null, "dataset_size": 46748999, "size_in_bytes": 98752893}}
 
raw/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bb85756cac23fe0b0aba0b9fd0567a73f075d5aa5511b8bd7499d1cd8dbb4d1
3
+ size 74040
raw/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9e0ee4d72661e3d00002553fb210938f50528b42cc72809fde18b8119c96778
3
+ size 25418552
raw/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99605f7d8e5b322445e6585cf6f1d0144f7e8e6f1e2f99672d40dc53fd3e61f5
3
+ size 76084
tokenized/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0adbac1952564c060728f7e42c8512703401ddd9d9847a18410c3a7add6f7754
3
+ size 76189
tokenized/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:556779f34f69f64af60eb64bf39166af86b96baecd244c7410e7623e38d1f0ed
3
+ size 26275499
tokenized/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:350c309007449d5fd9a0e75bcef64068ae2dd6550f15747fbff1ce783a4009f5
3
+ size 78185