superglue / README.md
Hyukkyu's picture
Update README.md
773afdd verified
|
raw
history blame
2.25 kB
metadata
license: mit
language:
  - en

SuperGLUE Benchmark Datasets

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 library.

Datasets Included

The repository includes the following SuperGLUE datasets:

  • BoolQ
  • CB
  • COPA
  • MultiRC
  • ReCoRD
  • RTE
  • WiC
  • WSC

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.

Usage

You can load any of the datasets using the Hugging Face datasets library. For example, to load the BoolQ dataset, run:

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 Processing

  • 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

@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}
}