Hyukkyu commited on
Commit
29a3b20
·
verified ·
1 Parent(s): 15266da

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -303
README.md CHANGED
@@ -1,303 +1,54 @@
1
- ---
2
- license: mit
3
- dataset_info:
4
- - config_name: boolq
5
- features:
6
- - name: question
7
- dtype: string
8
- - name: passage
9
- dtype: string
10
- - name: idx
11
- dtype: int64
12
- - name: label
13
- dtype: bool
14
- splits:
15
- - name: train
16
- num_bytes: 6136774
17
- num_examples: 9427
18
- - name: validation
19
- num_bytes: 2103781
20
- num_examples: 3270
21
- - name: test
22
- num_bytes: 2093385
23
- num_examples: 3245
24
- download_size: 6439045
25
- dataset_size: 10333940
26
- - config_name: cb
27
- features:
28
- - name: premise
29
- dtype: string
30
- - name: hypothesis
31
- dtype: string
32
- - name: label
33
- dtype: string
34
- - name: idx
35
- dtype: int64
36
- splits:
37
- - name: train
38
- num_bytes: 89859
39
- num_examples: 250
40
- - name: validation
41
- num_bytes: 22480
42
- num_examples: 56
43
- - name: test
44
- num_bytes: 93492
45
- num_examples: 250
46
- download_size: 137099
47
- dataset_size: 205831
48
- - config_name: copa
49
- features:
50
- - name: premise
51
- dtype: string
52
- - name: choice1
53
- dtype: string
54
- - name: choice2
55
- dtype: string
56
- - name: question
57
- dtype: string
58
- - name: label
59
- dtype: int64
60
- - name: idx
61
- dtype: int64
62
- splits:
63
- - name: train
64
- num_bytes: 50833
65
- num_examples: 400
66
- - name: validation
67
- num_bytes: 12879
68
- num_examples: 100
69
- - name: test
70
- num_bytes: 61846
71
- num_examples: 500
72
- download_size: 84158
73
- dataset_size: 125558
74
- - config_name: multirc
75
- features:
76
- - name: idx
77
- dtype: int64
78
- - name: version
79
- dtype: float64
80
- - name: passage
81
- struct:
82
- - name: questions
83
- list:
84
- - name: answers
85
- list:
86
- - name: idx
87
- dtype: int64
88
- - name: label
89
- dtype: int64
90
- - name: text
91
- dtype: string
92
- - name: idx
93
- dtype: int64
94
- - name: question
95
- dtype: string
96
- - name: text
97
- dtype: string
98
- splits:
99
- - name: train
100
- num_bytes: 2393721
101
- num_examples: 456
102
- - name: validation
103
- num_bytes: 429255
104
- num_examples: 83
105
- - name: test
106
- num_bytes: 858870
107
- num_examples: 166
108
- download_size: 2053244
109
- dataset_size: 3681846
110
- - config_name: record
111
- features:
112
- - name: source
113
- dtype: string
114
- - name: passage
115
- struct:
116
- - name: entities
117
- list:
118
- - name: end
119
- dtype: int64
120
- - name: start
121
- dtype: int64
122
- - name: text
123
- dtype: string
124
- - name: qas
125
- list:
126
- - name: answers
127
- list:
128
- - name: end
129
- dtype: int64
130
- - name: start
131
- dtype: int64
132
- - name: text
133
- dtype: string
134
- - name: idx
135
- dtype: int64
136
- - name: query
137
- dtype: string
138
- - name: idx
139
- dtype: int64
140
- splits:
141
- - name: train
142
- num_bytes: 110591940
143
- num_examples: 65709
144
- - name: validation
145
- num_bytes: 12375907
146
- num_examples: 7481
147
- - name: test
148
- num_bytes: 11509574
149
- num_examples: 7484
150
- download_size: 71256085
151
- dataset_size: 134477421
152
- - config_name: rte
153
- features:
154
- - name: premise
155
- dtype: string
156
- - name: hypothesis
157
- dtype: string
158
- - name: label
159
- dtype: string
160
- - name: idx
161
- dtype: int64
162
- splits:
163
- - name: train
164
- num_bytes: 877041
165
- num_examples: 2490
166
- - name: validation
167
- num_bytes: 94010
168
- num_examples: 277
169
- - name: test
170
- num_bytes: 973916
171
- num_examples: 3000
172
- download_size: 1269005
173
- dataset_size: 1944967
174
- - config_name: wic
175
- features:
176
- - name: word
177
- dtype: string
178
- - name: sentence1
179
- dtype: string
180
- - name: sentence2
181
- dtype: string
182
- - name: idx
183
- dtype: int64
184
- - name: label
185
- dtype: bool
186
- - name: start1
187
- dtype: int64
188
- - name: start2
189
- dtype: int64
190
- - name: end1
191
- dtype: int64
192
- - name: end2
193
- dtype: int64
194
- - name: version
195
- dtype: float64
196
- splits:
197
- - name: train
198
- num_bytes: 767620
199
- num_examples: 5428
200
- - name: validation
201
- num_bytes: 94651
202
- num_examples: 638
203
- - name: test
204
- num_bytes: 207006
205
- num_examples: 1400
206
- download_size: 591526
207
- dataset_size: 1069277
208
- - config_name: wsc
209
- features:
210
- - name: text
211
- dtype: string
212
- - name: target
213
- struct:
214
- - name: span1_index
215
- dtype: int64
216
- - name: span1_text
217
- dtype: string
218
- - name: span2_index
219
- dtype: int64
220
- - name: span2_text
221
- dtype: string
222
- - name: idx
223
- dtype: int64
224
- - name: label
225
- dtype: bool
226
- splits:
227
- - name: train
228
- num_bytes: 91597
229
- num_examples: 554
230
- - name: validation
231
- num_bytes: 21950
232
- num_examples: 104
233
- - name: test
234
- num_bytes: 32011
235
- num_examples: 146
236
- download_size: 47100
237
- dataset_size: 145558
238
- configs:
239
- - config_name: boolq
240
- data_files:
241
- - split: train
242
- path: boolq/train-*
243
- - split: validation
244
- path: boolq/validation-*
245
- - split: test
246
- path: boolq/test-*
247
- - config_name: cb
248
- data_files:
249
- - split: train
250
- path: cb/train-*
251
- - split: validation
252
- path: cb/validation-*
253
- - split: test
254
- path: cb/test-*
255
- - config_name: copa
256
- data_files:
257
- - split: train
258
- path: copa/train-*
259
- - split: validation
260
- path: copa/validation-*
261
- - split: test
262
- path: copa/test-*
263
- - config_name: multirc
264
- data_files:
265
- - split: train
266
- path: multirc/train-*
267
- - split: validation
268
- path: multirc/validation-*
269
- - split: test
270
- path: multirc/test-*
271
- - config_name: record
272
- data_files:
273
- - split: train
274
- path: record/train-*
275
- - split: validation
276
- path: record/validation-*
277
- - split: test
278
- path: record/test-*
279
- - config_name: rte
280
- data_files:
281
- - split: train
282
- path: rte/train-*
283
- - split: validation
284
- path: rte/validation-*
285
- - split: test
286
- path: rte/test-*
287
- - config_name: wic
288
- data_files:
289
- - split: train
290
- path: wic/train-*
291
- - split: validation
292
- path: wic/validation-*
293
- - split: test
294
- path: wic/test-*
295
- - config_name: wsc
296
- data_files:
297
- - split: train
298
- path: wsc/train-*
299
- - split: validation
300
- path: wsc/validation-*
301
- - split: test
302
- path: wsc/test-*
303
- ---
 
1
+ # SuperGLUE Benchmark Datasets
2
+
3
+ This repository contains the **SuperGLUE** benchmark datasets uploaded to the Hugging Face Hub. Each dataset is available as a separate configuration, making it easy to load individual datasets using the [datasets](https://github.com/huggingface/datasets) library.
4
+
5
+ ## Datasets Included
6
+
7
+ The repository includes the following SuperGLUE datasets:
8
+
9
+ - **BoolQ**
10
+ - **CB**
11
+ - **COPA**
12
+ - **MultiRC**
13
+ - **ReCoRD**
14
+ - **RTE**
15
+ - **WiC**
16
+ - **WSC**
17
+
18
+ Each dataset has been preprocessed to ensure consistency across train, validation, and test splits. Missing keys in the test split have been filled with dummy values (type-aware) to match the features found in the training and validation splits.
19
+
20
+ ## Usage
21
+
22
+ You can load any of the datasets using the Hugging Face `datasets` library. For example, to load the BoolQ dataset, run:
23
+
24
+ ```python
25
+ from datasets import load_dataset
26
+
27
+ # Load the BoolQ dataset from the SuperGLUE benchmark
28
+ dataset = load_dataset("hyukkyukang/superglue", "BoolQ")
29
+
30
+ # Access train, validation, and test splits
31
+ train_split = dataset["train"]
32
+ validation_split = dataset["validation"]
33
+ test_split = dataset["test"]
34
+
35
+ print(train_split)
36
+ ```
37
+ Replace "BoolQ" with the desired configuration name (e.g., "CB", "COPA", "MultiRC", etc.) to load other datasets.
38
+
39
+ ## Data Processing
40
+ - Schema Consistency:
41
+ A recursive procedure was used to infer the schema from the train and validation splits and fill in missing keys in the test split with dummy values. This ensures that all splits have the same features, preventing issues during model training or evaluation.
42
+ - Type-Aware Dummy Values:
43
+ Dummy values are inserted based on the expected type. For instance, missing boolean fields are filled with False, integer fields with -1, float fields with -1.0, and string fields with an empty string.
44
+
45
+ ## Citation
46
+ ```text
47
+ @article{wang2019superglue,
48
+ title={Superglue: A stickier benchmark for general-purpose language understanding systems},
49
+ author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel},
50
+ journal={Advances in neural information processing systems},
51
+ volume={32},
52
+ year={2019}
53
+ }
54
+ ```