File size: 18,168 Bytes
773afdd f676491 23e4976 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 d26e5da b2e3cb7 6b0da46 f676491 371272d f676491 371272d f676491 371272d f676491 371272d f676491 371272d 7119add 371272d f676491 371272d f676491 371272d f676491 98d7b52 f676491 371272d f676491 |
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 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 |
---
annotations_creators:
- other
language_creators:
- other
multilinguality:
- monolingual
source_datasets:
- original
paperswithcode_id: superglue
arxiv: 1905.00537
pretty_name: SuperGLUE Benchmark Datasets
tags:
- superglue
- nlp
- benchmark
license: mit
language:
- en
dataset_info:
- config_name: boolq
features:
- name: question
dtype: string
- name: passage
dtype: string
- name: idx
dtype: int64
- name: label
dtype: bool
splits:
- name: train
num_bytes: 6136774
num_examples: 9427
- name: validation
num_bytes: 2103781
num_examples: 3270
- name: test
num_bytes: 2093385
num_examples: 3245
download_size: 6439045
dataset_size: 10333940
- config_name: cb
features:
- name: premise
dtype: string
- name: hypothesis
dtype: string
- name: label
dtype: string
- name: idx
dtype: int64
splits:
- name: train
num_bytes: 89859
num_examples: 250
- name: validation
num_bytes: 22480
num_examples: 56
- name: test
num_bytes: 93492
num_examples: 250
download_size: 137099
dataset_size: 205831
- config_name: copa
features:
- name: premise
dtype: string
- name: choice1
dtype: string
- name: choice2
dtype: string
- name: question
dtype: string
- name: label
dtype: int64
- name: idx
dtype: int64
splits:
- name: train
num_bytes: 50833
num_examples: 400
- name: validation
num_bytes: 12879
num_examples: 100
- name: test
num_bytes: 61846
num_examples: 500
download_size: 84158
dataset_size: 125558
- config_name: multirc
features:
- name: idx
dtype: int64
- name: version
dtype: float64
- name: passage
struct:
- name: questions
list:
- name: answers
list:
- name: idx
dtype: int64
- name: label
dtype: int64
- name: text
dtype: string
- name: idx
dtype: int64
- name: question
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 2393721
num_examples: 456
- name: validation
num_bytes: 429255
num_examples: 83
- name: test
num_bytes: 858870
num_examples: 166
download_size: 2053244
dataset_size: 3681846
- config_name: record
features:
- name: source
dtype: string
- name: passage
struct:
- name: entities
list:
- name: end
dtype: int64
- name: start
dtype: int64
- name: text
dtype: string
- name: qas
list:
- name: answers
list:
- name: end
dtype: int64
- name: start
dtype: int64
- name: text
dtype: string
- name: idx
dtype: int64
- name: query
dtype: string
- name: idx
dtype: int64
splits:
- name: train
num_bytes: 110591940
num_examples: 65709
- name: validation
num_bytes: 12375907
num_examples: 7481
- name: test
num_bytes: 11509574
num_examples: 7484
download_size: 71256085
dataset_size: 134477421
- config_name: rte
features:
- name: premise
dtype: string
- name: hypothesis
dtype: string
- name: label
dtype: string
- name: idx
dtype: int64
splits:
- name: train
num_bytes: 877041
num_examples: 2490
- name: validation
num_bytes: 94010
num_examples: 277
- name: test
num_bytes: 973916
num_examples: 3000
download_size: 1269005
dataset_size: 1944967
- config_name: wic
features:
- name: word
dtype: string
- name: sentence1
dtype: string
- name: sentence2
dtype: string
- name: idx
dtype: int64
- name: label
dtype: bool
- name: start1
dtype: int64
- name: start2
dtype: int64
- name: end1
dtype: int64
- name: end2
dtype: int64
- name: version
dtype: float64
splits:
- name: train
num_bytes: 767620
num_examples: 5428
- name: validation
num_bytes: 94651
num_examples: 638
- name: test
num_bytes: 207006
num_examples: 1400
download_size: 591526
dataset_size: 1069277
- config_name: wsc
features:
- name: text
dtype: string
- name: target
struct:
- name: span1_index
dtype: int64
- name: span1_text
dtype: string
- name: span2_index
dtype: int64
- name: span2_text
dtype: string
- name: idx
dtype: int64
- name: label
dtype: bool
splits:
- name: train
num_bytes: 91597
num_examples: 554
- name: validation
num_bytes: 21950
num_examples: 104
- name: test
num_bytes: 32011
num_examples: 146
download_size: 47100
dataset_size: 145558
configs:
- config_name: boolq
data_files:
- split: train
path: boolq/train-*
- split: validation
path: boolq/validation-*
- split: test
path: boolq/test-*
- config_name: cb
data_files:
- split: train
path: cb/train-*
- split: validation
path: cb/validation-*
- split: test
path: cb/test-*
- config_name: copa
data_files:
- split: train
path: copa/train-*
- split: validation
path: copa/validation-*
- split: test
path: copa/test-*
- config_name: multirc
data_files:
- split: train
path: multirc/train-*
- split: validation
path: multirc/validation-*
- split: test
path: multirc/test-*
- config_name: record
data_files:
- split: train
path: record/train-*
- split: validation
path: record/validation-*
- split: test
path: record/test-*
- config_name: rte
data_files:
- split: train
path: rte/train-*
- split: validation
path: rte/validation-*
- split: test
path: rte/test-*
- config_name: wic
data_files:
- split: train
path: wic/train-*
- split: validation
path: wic/validation-*
- split: test
path: wic/test-*
- config_name: wsc
data_files:
- split: train
path: wsc/train-*
- split: validation
path: wsc/validation-*
- split: test
path: wsc/test-*
---
# SuperGLUE Benchmark Datasets
This repository contains the [**SuperGLUE**](https://arxiv.org/pdf/1905.00537) benchmark datasets. Each dataset is available as a separate configuration, making it easy to load individual datasets using the [datasets](https://github.com/huggingface/datasets) library.
## Dataset Descriptions
### Datasets Included
- **BoolQ:** A question-answering task where each example consists of a short passage and a yes/no question about the passage. The questions are provided anonymously and unsolicited by users of the Google search engine and paired with a paragraph from a Wikipedia article containing the answer.
- **CB (CommitmentBank):** A natural language inference task where each example consists of a premise containing an embedded clause, and the corresponding hypothesis is the extraction of that clause. The task focuses on determining whether the premise entails the hypothesis, contradicts it, or is neutral.
- **COPA (Choice of Plausible Alternatives):** A causal reasoning task where the system selects the more plausible alternative between two choices given a premise. Each example consists of a premise and two possible alternatives, and the task is to choose the alternative that has a causal relationship with the premise.
- **MultiRC (Multiple Sentence Reading Comprehension):** A reading comprehension task where each example consists of a context paragraph, a question about the paragraph, and a list of possible answers. The task requires identifying all correct answers for each question, and there may be multiple correct answers.
- **ReCoRD (Reading Comprehension with Commonsense Reasoning Dataset):** A cloze-style reading comprehension task that evaluates a model’s ability to use commonsense reasoning to predict which entity is missing from a passage. Each example consists of a passage with a missing entity and a list of possible entities to fill in the blank.
- **RTE (Recognizing Textual Entailment):** A textual entailment task that involves determining whether a given premise entails a hypothesis. Each example consists of a premise and a hypothesis, and the task is to predict whether the hypothesis is true based on the premise.
- **WiC (Word-in-Context):** A word sense disambiguation task that determines if a word is used in the same sense in two different contexts. Each example consists of two sentences containing the same word, and the task is to decide whether the word has the same meaning in both sentences.
- **WSC (Winograd Schema Challenge):** A pronoun resolution task where the system must determine the antecedent of a pronoun in a sentence. Each example consists of a sentence with a pronoun and a list of possible antecedents, and the task is to select the correct antecedent.
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.
### Languages
All data in SuperGLUE is in English.
## Dataset Structure
### Data Instances
Each task in SuperGLUE is split into train, validation, and test sets. An example instance from each configuration is provided in the task-specific sections below.
#### BoolQ
- train split: 9427 examples
- validation split: 3270 examples
- test split: 3245 examples
An example of 'train' looks as follows.
```json
{
"question": "do iran and afghanistan speak the same language",
"passage": "Persian language -- Persian (/\u02c8p\u025c\u02d0r\u0292\u0259n, -\u0283\u0259n/), also known by its endonym Farsi (\u0641\u0627\u0631\u0633\u06cc f\u0101rsi (f\u0252\u02d0\u027e\u02c8si\u02d0) ( listen)), is one of the Western Iranian languages within the Indo-Iranian branch of the Indo-European language family. It is primarily spoken in Iran, Afghanistan (officially known as Dari since 1958), and Tajikistan (officially known as Tajiki since the Soviet era), and some other regions which historically were Persianate societies and considered part of Greater Iran. It is written in the Persian alphabet, a modified variant of the Arabic script, which itself evolved from the Aramaic alphabet.",
"idx": 0,
"label": true
}
```
#### CB
- train split: 250 examples
- validation split: 56 examples
- test split: 250 examples
An example of 'train' looks as follows.
```json
{
"premise": "It was a complex language. Not written down but handed down. One might say it was peeled down.",
"hypothesis": "the language was peeled down",
"label": "entailment",
"idx": 0
}
```
#### COPA
- train split: 400 examples
- validation split: 100 examples
- test split: 500 examples
An example of 'train' looks as follows.
```json
{
"premise": "My body cast a shadow over the grass.",
"choice1": "The sun was rising.",
"choice2": "The grass was cut.",
"question": "cause",
"label": 0,
"idx": 0
}
```
#### MultiRC
- train split: 456 examples
- validation split: 83 examples
- test split: 166 examples
An example of 'train' looks as follows.
```json
{
"idx": 0,
"version": 1.1,
"passage": {
"questions": [
{
"answers": [
{
"idx": 0,
"label": 0,
"text": "Children, Gerd, or Dorian Popa"
},
{
"idx": 1,
"label": 0,
"text": "Monetary rewards"
},
{
"idx": 2,
"label": 1,
"text": "Asking Pakistan to help the USA"
},
{
"idx": 3,
"label": 1,
"text": "Meeting with General Musharraf"
},
{
"idx": 4,
"label": 1,
"text": "President Clinton offered the moon in terms of better relations with the United States"
},
{
"idx": 5,
"label": 0,
"text": "A Presidential visit in March"
},
{
"idx": 6,
"label": 1,
"text": "Paper checks"
},
{
"idx": 7,
"label": 0,
"text": "Increasing trade with Pakistan"
},
{
"idx": 8,
"label": 1,
"text": "Persuading Pakistan to use its influence over the Taliban by dangling before him the possibility of a presidential visit in March as a reward for Pakistani cooperation"
}
],
"idx": 0,
"question": "What did the high-level effort to persuade Pakistan include?"
},
...
],
"text": "While this process moved along, diplomacy ..."
}
```
#### ReCoRD
- train split: 65709 examples
- validation split: 7481 examples
- test split: 7484 examples
An example of 'train' looks as follows.
```json
{
"source": "Daily mail",
"passage": {
"entities": [
{
"end": 96,
"start": 86
},
{
"end": 183,
"start": 178
},
{
"end": 206,
"start": 197
},
{
"end": 361,
"start": 357
},
{
"end": 539,
"start": 535
},
{
"end": 636,
"start": 627
},
{
"end": 681,
"start": 672
}
],
"text": "The harrowing stories of women and children locked up for so-called 'moral crimes' in Afghanistan's notorious female prison have been revealed after cameras were allowed inside. Mariam has been in Badam Bagh prison for three months after she shot a man who just raped her at gunpoint and then turned the weapon on herself - but she has yet to been charged. Nuria has eight months left to serve of her sentence for trying to divorce her husband. She gave birth in prison to her son and they share a cell together. Scroll down for video Nuria was jailed for trying to divorce her husband. Her son is one of 62 children living at Badam Bagh prison\n@highlight\nMost of the 202 Badam Bagh inmates are jailed for so-called 'moral crimes'\n@highlight\nCrimes include leaving their husbands or refusing an arrange marriage\n@highlight\n62 children live there and share cells with their mothers and five others"
},
"qas": [
{
"answers": [
{
"end": 539,
"start": 535,
"text": "Nuria"
}
],
"idx": 0,
"query": "The baby she gave birth to is her husbands and he has even offered to have the courts set her free if she returns, but @placeholder has refused."
}
],
"idx": 0
}
```
#### RTE
- train split: 2490 examples
- validation split: 277 examples
- test split: 3000 examples
An example of 'train' looks as follows.
```json
{
"premise": "No Weapons of Mass Destruction Found in Iraq Yet.",
"hypothesis": "Weapons of Mass Destruction Found in Iraq.",
"label": "not_entailment",
"idx": 0
}
```
#### WiC
- train split: 5428 examples
- validation split: 638 examples
- test split: 1400 examples
An example of 'train' looks as follows.
```json
{
"word": "place",
"sentence1": "Do you want to come over to my place later?",
"sentence2": "A political system with no place for the less prominent groups.",
"idx": 0,
"label": false,
"start1": 31,
"start2": 27,
"end1": 36,
"end2": 32,
"version": 1.1
}
```
#### WSC
- train split: 554 examples
- validation split: 104 examples
- test split: 146 examples
An example of 'train' looks as follows.
```json
{
"text": "Mark told Pete many lies about himself, which Pete included in his book. He should have been more skeptical.",
"target": {
"span1_index": 0,
"span1_text": "Mark",
"span2_index": 13,
"span2_text": "He"
},
"idx": 0,
"label": false
}
```
## Usage
You can load any of the datasets using the Huggingface `datasets` library. For example, to load the BoolQ dataset, run:
```python
from datasets import load_dataset
# Load the BoolQ dataset from the SuperGLUE benchmark
dataset = load_dataset("Hyukkyu/superglue", "boolq")
# Access train, validation, and test splits
train_split = dataset["train"]
validation_split = dataset["validation"]
test_split = dataset["test"]
print(train_split)
```
Replace "boolq" with the desired configuration name (e.g., "cb", "copa", "multirc", etc.) to load other datasets.
## Data Preprocessing
- Schema Consistency:
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.
- Type-Aware Dummy Values:
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.
## Citation
```text
@article{wang2019superglue,
title={Superglue: A stickier benchmark for general-purpose language understanding systems},
author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel},
journal={Advances in neural information processing systems},
volume={32},
year={2019}
}
``` |