Datasets:
Commit
•
54376a6
0
Parent(s):
Update files from the datasets library (from 1.0.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.0.0
- .gitattributes +27 -0
- dataset_infos.json +1 -0
- dummy/axb/1.0.2/dummy_data.zip +3 -0
- dummy/axg/1.0.2/dummy_folder.zip +3 -0
- dummy/boolq/1.0.2/dummy_data.zip +3 -0
- dummy/boolq/1.0.2/dummy_data/BoolQ/test.jsonl +1 -0
- dummy/boolq/1.0.2/dummy_data/BoolQ/train.jsonl +3 -0
- dummy/boolq/1.0.2/dummy_data/BoolQ/val.jsonl +2 -0
- dummy/cb/1.0.2/dummy_data/CB/test.jsonl +1 -0
- dummy/cb/1.0.2/dummy_data/CB/train.jsonl +3 -0
- dummy/cb/1.0.2/dummy_data/CB/val.jsonl +2 -0
- dummy/copa/1.0.2/dummy_data/COPA.zip +3 -0
- dummy/multirc/1.0.2/dummy_folder.zip +3 -0
- dummy/record/1.0.2/dummy_data.zip +3 -0
- dummy/rte/1.0.2/dummy_data.zip +3 -0
- dummy/wic/1.0.2/dummy_data.zip +3 -0
- dummy/wsc/1.0.2/dummy_data.zip +3 -0
- super_glue.py +626 -0
.gitattributes
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
dataset_infos.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"boolq": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nBoolQ (Boolean Questions, Clark et al., 2019a) is a QA task where each example consists of a short\npassage and a yes/no question about the passage. The questions are provided anonymously and\nunsolicited by users of the Google search engine, and afterwards paired with a paragraph from a\nWikipedia article containing the answer. Following the original work, we evaluate with accuracy.", "citation": "@inproceedings{clark2019boolq,\n title={BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions},\n author={Clark, Christopher and Lee, Kenton and Chang, Ming-Wei, and Kwiatkowski, Tom and Collins, Michael, and Toutanova, Kristina},\n booktitle={NAACL},\n year={2019}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://github.com/google-research-datasets/boolean-questions", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "passage": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["False", "True"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "boolq", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 2107997, "num_examples": 3245, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 6179206, "num_examples": 9427, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 2118505, "num_examples": 3270, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/BoolQ.zip": {"num_bytes": 4118001, "checksum": "853fbe7922f70c59629f06a39e8d9ca440c3d740e760fd3b87a5ddf3dcba2436"}}, "download_size": 4118001, "dataset_size": 10405708, "size_in_bytes": 14523709}, "cb": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe CommitmentBank (De Marneffe et al., 2019) is a corpus of short texts in which at least\none sentence contains an embedded clause. Each of these embedded clauses is annotated with the\ndegree to which we expect that the person who wrote the text is committed to the truth of the clause.\nThe resulting task framed as three-class textual entailment on examples that are drawn from the Wall\nStreet Journal, fiction from the British National Corpus, and Switchboard. Each example consists\nof a premise containing an embedded clause and the corresponding hypothesis is the extraction of\nthat clause. We use a subset of the data that had inter-annotator agreement above 0.85. The data is\nimbalanced (relatively fewer neutral examples), so we evaluate using accuracy and F1, where for\nmulti-class F1 we compute the unweighted average of the F1 per class.", "citation": "@article{de marneff_simons_tonhauser_2019,\n title={The CommitmentBank: Investigating projection in naturally occurring discourse},\n journal={proceedings of Sinn und Bedeutung 23},\n author={De Marneff, Marie-Catherine and Simons, Mandy and Tonhauser, Judith},\n year={2019}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://github.com/mcdm/CommitmentBank", "license": "", "features": {"premise": {"dtype": "string", "id": null, "_type": "Value"}, "hypothesis": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["entailment", "contradiction", "neutral"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "cb", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 93660, "num_examples": 250, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 87218, "num_examples": 250, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 21894, "num_examples": 56, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/CB.zip": {"num_bytes": 75482, "checksum": "8d641383298d54554066ba1c93f56ae7410af75df621b90c63028806bbbbb535"}}, "download_size": 75482, "dataset_size": 202772, "size_in_bytes": 278254}, "copa": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe Choice Of Plausible Alternatives (COPA, Roemmele et al., 2011) dataset is a causal\nreasoning task in which a system is given a premise sentence and two possible alternatives. The\nsystem must choose the alternative which has the more plausible causal relationship with the premise.\nThe method used for the construction of the alternatives ensures that the task requires causal reasoning\nto solve. Examples either deal with alternative possible causes or alternative possible effects of the\npremise sentence, accompanied by a simple question disambiguating between the two instance\ntypes for the model. All examples are handcrafted and focus on topics from online blogs and a\nphotography-related encyclopedia. Following the recommendation of the authors, we evaluate using\naccuracy.", "citation": "@inproceedings{roemmele2011choice,\n title={Choice of plausible alternatives: An evaluation of commonsense causal reasoning},\n author={Roemmele, Melissa and Bejan, Cosmin Adrian and Gordon, Andrew S},\n booktitle={2011 AAAI Spring Symposium Series},\n year={2011}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "http://people.ict.usc.edu/~gordon/copa.html", "license": "", "features": {"premise": {"dtype": "string", "id": null, "_type": "Value"}, "choice1": {"dtype": "string", "id": null, "_type": "Value"}, "choice2": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["choice1", "choice2"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "copa", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 60303, "num_examples": 500, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 49599, "num_examples": 400, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 12586, "num_examples": 100, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/COPA.zip": {"num_bytes": 43986, "checksum": "405906cddac74bc1e1ce8220f1107d1025b66a25ef10149d91b10bb30651125f"}}, "download_size": 43986, "dataset_size": 122488, "size_in_bytes": 166474}, "multirc": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe Multi-Sentence Reading Comprehension dataset (MultiRC, Khashabi et al., 2018)\nis a true/false question-answering task. Each example consists of a context paragraph, a question\nabout that paragraph, and a list of possible answers to that question which must be labeled as true or\nfalse. Question-answering (QA) is a popular problem with many datasets. We use MultiRC because\nof a number of desirable properties: (i) each question can have multiple possible correct answers,\nso each question-answer pair must be evaluated independent of other pairs, (ii) the questions are\ndesigned such that answering each question requires drawing facts from multiple context sentences,\nand (iii) the question-answer pair format more closely matches the API of other SuperGLUE tasks\nthan span-based extractive QA does. The paragraphs are drawn from seven domains including news,\nfiction, and historical text.", "citation": "@inproceedings{MultiRC2018,\n author = {Daniel Khashabi and Snigdha Chaturvedi and Michael Roth and Shyam Upadhyay and Dan Roth},\n title = {Looking Beyond the Surface:A Challenge Set for Reading Comprehension over Multiple Sentences},\n booktitle = {Proceedings of North American Chapter of the Association for Computational Linguistics (NAACL)},\n year = {2018}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://cogcomp.org/multirc/", "license": "", "features": {"paragraph": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "answer": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"paragraph": {"dtype": "int32", "id": null, "_type": "Value"}, "question": {"dtype": "int32", "id": null, "_type": "Value"}, "answer": {"dtype": "int32", "id": null, "_type": "Value"}}, "label": {"num_classes": 2, "names": ["False", "True"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "multirc", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 14996451, "num_examples": 9693, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 46213579, "num_examples": 27243, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 7758918, "num_examples": 4848, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/MultiRC.zip": {"num_bytes": 1116225, "checksum": "b3cd440856e72eb166b2edcd37b798455f1ebd51f2c3de64c0c2a4e1971d2737"}}, "download_size": 1116225, "dataset_size": 68968948, "size_in_bytes": 70085173}, "record": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\n(Reading Comprehension with Commonsense Reasoning Dataset, Zhang et al., 2018) is a\nmultiple-choice QA task. Each example consists of a news article and a Cloze-style question about\nthe article in which one entity is masked out. The system must predict the masked out entity from a\ngiven list of possible entities in the provided passage, where the same entity may be expressed using\nmultiple different surface forms, all of which are considered correct. Articles are drawn from CNN\nand Daily Mail. Following the original work, we evaluate with max (over all mentions) token-level\nF1 and exact match (EM).", "citation": "@article{zhang2018record,\n title={Record: Bridging the gap between human and machine commonsense reading comprehension},\n author={Zhang, Sheng and Liu, Xiaodong and Liu, Jingjing and Gao, Jianfeng and Duh, Kevin and Van Durme, Benjamin},\n journal={arXiv preprint arXiv:1810.12885},\n year={2018}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://sheng-z.github.io/ReCoRD-explorer/", "license": "", "features": {"passage": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}, "entities": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "answers": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "idx": {"passage": {"dtype": "int32", "id": null, "_type": "Value"}, "query": {"dtype": "int32", "id": null, "_type": "Value"}}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "record", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 13403490, "num_examples": 10000, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 139393747, "num_examples": 100730, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 13650007, "num_examples": 10000, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/ReCoRD.zip": {"num_bytes": 51757880, "checksum": "30c7b651ab21b8bf8fab986495cd1084333010e040548f861b839eec0044ac18"}}, "download_size": 51757880, "dataset_size": 166447244, "size_in_bytes": 218205124}, "rte": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe Recognizing Textual Entailment (RTE) datasets come from a series of annual competitions\non textual entailment, the problem of predicting whether a given premise sentence entails a given\nhypothesis sentence (also known as natural language inference, NLI). RTE was previously included\nin GLUE, and we use the same data and format as before: We merge data from RTE1 (Dagan\net al., 2006), RTE2 (Bar Haim et al., 2006), RTE3 (Giampiccolo et al., 2007), and RTE5 (Bentivogli\net al., 2009). All datasets are combined and converted to two-class classification: entailment and\nnot_entailment. Of all the GLUE tasks, RTE was among those that benefited from transfer learning\nthe most, jumping from near random-chance performance (~56%) at the time of GLUE's launch to\n85% accuracy (Liu et al., 2019c) at the time of writing. Given the eight point gap with respect to\nhuman performance, however, the task is not yet solved by machines, and we expect the remaining\ngap to be difficult to close.", "citation": "@inproceedings{dagan2005pascal,\n title={The PASCAL recognising textual entailment challenge},\n author={Dagan, Ido and Glickman, Oren and Magnini, Bernardo},\n booktitle={Machine Learning Challenges Workshop},\n pages={177--190},\n year={2005},\n organization={Springer}\n}\n@inproceedings{bar2006second,\n title={The second pascal recognising textual entailment challenge},\n author={Bar-Haim, Roy and Dagan, Ido and Dolan, Bill and Ferro, Lisa and Giampiccolo, Danilo and Magnini, Bernardo and Szpektor, Idan},\n booktitle={Proceedings of the second PASCAL challenges workshop on recognising textual entailment},\n volume={6},\n number={1},\n pages={6--4},\n year={2006},\n organization={Venice}\n}\n@inproceedings{giampiccolo2007third,\n title={The third pascal recognizing textual entailment challenge},\n author={Giampiccolo, Danilo and Magnini, Bernardo and Dagan, Ido and Dolan, Bill},\n booktitle={Proceedings of the ACL-PASCAL workshop on textual entailment and paraphrasing},\n pages={1--9},\n year={2007},\n organization={Association for Computational Linguistics}\n}\n@inproceedings{bentivogli2009fifth,\n title={The Fifth PASCAL Recognizing Textual Entailment Challenge.},\n author={Bentivogli, Luisa and Clark, Peter and Dagan, Ido and Giampiccolo, Danilo},\n booktitle={TAC},\n year={2009}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://aclweb.org/aclwiki/Recognizing_Textual_Entailment", "license": "", "features": {"premise": {"dtype": "string", "id": null, "_type": "Value"}, "hypothesis": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["entailment", "not_entailment"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "rte", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 975799, "num_examples": 3000, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 848745, "num_examples": 2490, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 90899, "num_examples": 277, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/RTE.zip": {"num_bytes": 750920, "checksum": "6310aab3f000424c9d0318a1ff20692e07c7f4aa15e8f17a5972ea0a35c398b9"}}, "download_size": 750920, "dataset_size": 1915443, "size_in_bytes": 2666363}, "wic": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe Word-in-Context (WiC, Pilehvar and Camacho-Collados, 2019) dataset supports a word\nsense disambiguation task cast as binary classification over sentence pairs. Given two sentences and a\npolysemous (sense-ambiguous) word that appears in both sentences, the task is to determine whether\nthe word is used with the same sense in both sentences. Sentences are drawn from WordNet (Miller,\n1995), VerbNet (Schuler, 2005), and Wiktionary. We follow the original work and evaluate using\naccuracy.", "citation": "@article{DBLP:journals/corr/abs-1808-09121,\n author={Mohammad Taher Pilehvar and os{'{e}} Camacho{-}Collados},\n title={WiC: 10, 000 Example Pairs for Evaluating Context-Sensitive Representations},\n journal={CoRR},\n volume={abs/1808.09121},\n year={2018},\n url={http://arxiv.org/abs/1808.09121},\n archivePrefix={arXiv},\n eprint={1808.09121},\n timestamp={Mon, 03 Sep 2018 13:36:40 +0200},\n biburl={https://dblp.org/rec/bib/journals/corr/abs-1808-09121},\n bibsource={dblp computer science bibliography, https://dblp.org}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://pilehvar.github.io/wic/", "license": "", "features": {"word": {"dtype": "string", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "start1": {"dtype": "int32", "id": null, "_type": "Value"}, "start2": {"dtype": "int32", "id": null, "_type": "Value"}, "end1": {"dtype": "int32", "id": null, "_type": "Value"}, "end2": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["False", "True"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "wic", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 180593, "num_examples": 1400, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 665183, "num_examples": 5428, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 82623, "num_examples": 638, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/WiC.zip": {"num_bytes": 396213, "checksum": "ee7e67f4ae9eafbf533780faa198e62167f3cda54256cdf261877be3c0e90900"}}, "download_size": 396213, "dataset_size": 928399, "size_in_bytes": 1324612}, "wsc": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe Winograd Schema Challenge (WSC, Levesque et al., 2012) is a reading comprehension\ntask in which a system must read a sentence with a pronoun and select the referent of that pronoun\nfrom a list of choices. Given the difficulty of this task and the headroom still left, we have included\nWSC in SuperGLUE and recast the dataset into its coreference form. The task is cast as a binary\nclassification problem, as opposed to N-multiple choice, in order to isolate the model's ability to\nunderstand the coreference links within a sentence as opposed to various other strategies that may\ncome into play in multiple choice conditions. With that in mind, we create a split with 65% negative\nmajority class in the validation set, reflecting the distribution of the hidden test set, and 52% negative\nclass in the training set. The training and validation examples are drawn from the original Winograd\nSchema dataset (Levesque et al., 2012), as well as those distributed by the affiliated organization\nCommonsense Reasoning. The test examples are derived from fiction books and have been shared\nwith us by the authors of the original dataset. Previously, a version of WSC recast as NLI as included\nin GLUE, known as WNLI. No substantial progress was made on WNLI, with many submissions\nopting to submit only majority class predictions. WNLI was made especially difficult due to an\nadversarial train/dev split: Premise sentences that appeared in the training set sometimes appeared\nin the development set with a different hypothesis and a flipped label. If a system memorized the\ntraining set without meaningfully generalizing, which was easy due to the small size of the training\nset, it could perform far below chance on the development set. We remove this adversarial design\nin the SuperGLUE version of WSC by ensuring that no sentences are shared between the training,\nvalidation, and test sets.\n\nHowever, the validation and test sets come from different domains, with the validation set consisting\nof ambiguous examples such that changing one non-noun phrase word will change the coreference\ndependencies in the sentence. The test set consists only of more straightforward examples, with a\nhigh number of noun phrases (and thus more choices for the model), but low to no ambiguity.", "citation": "@inproceedings{levesque2012winograd,\n title={The winograd schema challenge},\n author={Levesque, Hector and Davis, Ernest and Morgenstern, Leora},\n booktitle={Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning},\n year={2012}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://cs.nyu.edu/faculty/davise/papers/WinogradSchemas/WS.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "span1_index": {"dtype": "int32", "id": null, "_type": "Value"}, "span2_index": {"dtype": "int32", "id": null, "_type": "Value"}, "span1_text": {"dtype": "string", "id": null, "_type": "Value"}, "span2_text": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["False", "True"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "wsc", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 31572, "num_examples": 146, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 89883, "num_examples": 554, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 21637, "num_examples": 104, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/WSC.zip": {"num_bytes": 32751, "checksum": "2ed6dfa94556b4a128ff0441efe365b2e883124e7e6aa00fb8d3a6cb1fd520a9"}}, "download_size": 32751, "dataset_size": 143092, "size_in_bytes": 175843}, "wsc.fixed": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nThe Winograd Schema Challenge (WSC, Levesque et al., 2012) is a reading comprehension\ntask in which a system must read a sentence with a pronoun and select the referent of that pronoun\nfrom a list of choices. Given the difficulty of this task and the headroom still left, we have included\nWSC in SuperGLUE and recast the dataset into its coreference form. The task is cast as a binary\nclassification problem, as opposed to N-multiple choice, in order to isolate the model's ability to\nunderstand the coreference links within a sentence as opposed to various other strategies that may\ncome into play in multiple choice conditions. With that in mind, we create a split with 65% negative\nmajority class in the validation set, reflecting the distribution of the hidden test set, and 52% negative\nclass in the training set. The training and validation examples are drawn from the original Winograd\nSchema dataset (Levesque et al., 2012), as well as those distributed by the affiliated organization\nCommonsense Reasoning. The test examples are derived from fiction books and have been shared\nwith us by the authors of the original dataset. Previously, a version of WSC recast as NLI as included\nin GLUE, known as WNLI. No substantial progress was made on WNLI, with many submissions\nopting to submit only majority class predictions. WNLI was made especially difficult due to an\nadversarial train/dev split: Premise sentences that appeared in the training set sometimes appeared\nin the development set with a different hypothesis and a flipped label. If a system memorized the\ntraining set without meaningfully generalizing, which was easy due to the small size of the training\nset, it could perform far below chance on the development set. We remove this adversarial design\nin the SuperGLUE version of WSC by ensuring that no sentences are shared between the training,\nvalidation, and test sets.\n\nHowever, the validation and test sets come from different domains, with the validation set consisting\nof ambiguous examples such that changing one non-noun phrase word will change the coreference\ndependencies in the sentence. The test set consists only of more straightforward examples, with a\nhigh number of noun phrases (and thus more choices for the model), but low to no ambiguity.\n\nThis version fixes issues where the spans are not actually substrings of the text.", "citation": "@inproceedings{levesque2012winograd,\n title={The winograd schema challenge},\n author={Levesque, Hector and Davis, Ernest and Morgenstern, Leora},\n booktitle={Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning},\n year={2012}\n}\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://cs.nyu.edu/faculty/davise/papers/WinogradSchemas/WS.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "span1_index": {"dtype": "int32", "id": null, "_type": "Value"}, "span2_index": {"dtype": "int32", "id": null, "_type": "Value"}, "span1_text": {"dtype": "string", "id": null, "_type": "Value"}, "span2_text": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["False", "True"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "wsc.fixed", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 31568, "num_examples": 146, "dataset_name": "super_glue"}, "train": {"name": "train", "num_bytes": 89883, "num_examples": 554, "dataset_name": "super_glue"}, "validation": {"name": "validation", "num_bytes": 21637, "num_examples": 104, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/WSC.zip": {"num_bytes": 32751, "checksum": "2ed6dfa94556b4a128ff0441efe365b2e883124e7e6aa00fb8d3a6cb1fd520a9"}}, "download_size": 32751, "dataset_size": 143088, "size_in_bytes": 175839}, "axb": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nAn expert-constructed,\ndiagnostic dataset that automatically tests models for a broad range of linguistic, commonsense, and\nworld knowledge. Each example in this broad-coverage diagnostic is a sentence pair labeled with\na three-way entailment relation (entailment, neutral, or contradiction) and tagged with labels that\nindicate the phenomena that characterize the relationship between the two sentences. Submissions\nto the GLUE leaderboard are required to include predictions from the submission's MultiNLI\nclassifier on the diagnostic dataset, and analyses of the results were shown alongside the main\nleaderboard. Since this broad-coverage diagnostic task has proved difficult for top models, we retain\nit in SuperGLUE. However, since MultiNLI is not part of SuperGLUE, we collapse contradiction\nand neutral into a single not_entailment label, and request that submissions include predictions\non the resulting set from the model used for the RTE task.\n", "citation": "\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://gluebenchmark.com/diagnostics", "license": "", "features": {"sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["entailment", "not_entailment"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "axb", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 238392, "num_examples": 1104, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/AX-b.zip": {"num_bytes": 33950, "checksum": "43b45c55a273575c58a33cd68f10a971f83daa3aa223bfbc4077b92fbdf960b3"}}, "download_size": 33950, "dataset_size": 238392, "size_in_bytes": 272342}, "axg": {"description": "SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after\nGLUE with a new set of more difficult language understanding tasks, improved\nresources, and a new public leaderboard.\n\nWinogender is designed to measure gender\nbias in coreference resolution systems. We use the Diverse Natural Language Inference Collection\n(DNC; Poliak et al., 2018) version that casts Winogender as a textual entailment task. Each example\nconsists of a premise sentence with a male or female pronoun and a hypothesis giving a possible\nantecedent of the pronoun. Examples occur in minimal pairs, where the only difference between\nan example and its pair is the gender of the pronoun in the premise. Performance on Winogender\nis measured with both accuracy and the gender parity score: the percentage of minimal pairs for\nwhich the predictions are the same. We note that a system can trivially obtain a perfect gender parity\nscore by guessing the same class for all examples, so a high gender parity score is meaningless unless\naccompanied by high accuracy. As a diagnostic test of gender bias, we view the schemas as having high\npositive predictive value and low negative predictive value; that is, they may demonstrate the presence\nof gender bias in a system, but not prove its absence.\n", "citation": "@inproceedings{rudinger-EtAl:2018:N18,\n author = {Rudinger, Rachel and Naradowsky, Jason and Leonard, Brian and {Van Durme}, Benjamin},\n title = {Gender Bias in Coreference Resolution},\n booktitle = {Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},\n month = {June},\n year = {2018},\n address = {New Orleans, Louisiana},\n publisher = {Association for Computational Linguistics}\n}\n\n@article{wang2019superglue,\n title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},\n author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},\n journal={arXiv preprint arXiv:1905.00537},\n year={2019}\n}\n\nNote that each SuperGLUE dataset has its own citation. Please see the source to\nget the correct citation for each contained dataset.\n", "homepage": "https://github.com/rudinger/winogender-schemas", "license": "", "features": {"premise": {"dtype": "string", "id": null, "_type": "Value"}, "hypothesis": {"dtype": "string", "id": null, "_type": "Value"}, "idx": {"dtype": "int32", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["entailment", "not_entailment"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": null, "builder_name": "super_glue", "config_name": "axg", "version": {"version_str": "1.0.2", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"test": {"name": "test", "num_bytes": 53581, "num_examples": 356, "dataset_name": "super_glue"}}, "download_checksums": {"https://dl.fbaipublicfiles.com/glue/superglue/data/v2/AX-g.zip": {"num_bytes": 10413, "checksum": "2d4e00d3a7d23d2c3787ee4c1382cc81a72cb05a76fc9d78d142949247ed61b9"}}, "download_size": 10413, "dataset_size": 53581, "size_in_bytes": 63994}}
|
dummy/axb/1.0.2/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3dd7b3ac2d28aea1cbe43a0e91f6f6f5c1dfd7bdc5dfaafd30fa958ee9f9a331
|
3 |
+
size 795
|
dummy/axg/1.0.2/dummy_folder.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe46c81ee365c5d5eff4a3929e9062c063c98db8bd16cd7c3707b0e74cc54473
|
3 |
+
size 787
|
dummy/boolq/1.0.2/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0606b3277cb37500b0627f136bc7600f55223f39396a5879de26836c09716a62
|
3 |
+
size 25291
|
dummy/boolq/1.0.2/dummy_data/BoolQ/test.jsonl
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"passage": "20 euro note -- Until now there has been only one complete series of euro notes; however a new series, similar to the current one, is being released. The European Central Bank will, in due time, announce when banknotes from the first series lose legal tender status.", "question": "is the first series 20 euro note still legal tender", "idx": 0}
|
dummy/boolq/1.0.2/dummy_data/BoolQ/train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{"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}
|
2 |
+
{"question": "do good samaritan laws protect those who help at an accident", "passage": "Good Samaritan law -- Good Samaritan laws offer legal protection to people who give reasonable assistance to those who are, or who they believe to be, injured, ill, in peril, or otherwise incapacitated. The protection is intended to reduce bystanders' hesitation to assist, for fear of being sued or prosecuted for unintentional injury or wrongful death. An example of such a law in common-law areas of Canada: a good Samaritan doctrine is a legal principle that prevents a rescuer who has voluntarily helped a victim in distress from being successfully sued for wrongdoing. Its purpose is to keep people from being reluctant to help a stranger in need for fear of legal repercussions should they make some mistake in treatment. By contrast, a duty to rescue law requires people to offer assistance and holds those who fail to do so liable.", "idx": 1, "label": true}
|
3 |
+
{"question": "is windows movie maker part of windows essentials", "passage": "Windows Movie Maker -- Windows Movie Maker (formerly known as Windows Live Movie Maker in Windows 7) is a discontinued video editing software by Microsoft. It is a part of Windows Essentials software suite and offers the ability to create and edit videos as well as to publish them on OneDrive, Facebook, Vimeo, YouTube, and Flickr.", "idx": 2, "label": true}
|
dummy/boolq/1.0.2/dummy_data/BoolQ/val.jsonl
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
{"question": "does ethanol take more energy make that produces", "passage": "Ethanol fuel -- All biomass goes through at least some of these steps: it needs to be grown, collected, dried, fermented, distilled, and burned. All of these steps require resources and an infrastructure. The total amount of energy input into the process compared to the energy released by burning the resulting ethanol fuel is known as the energy balance (or ``energy returned on energy invested''). Figures compiled in a 2007 report by National Geographic Magazine point to modest results for corn ethanol produced in the US: one unit of fossil-fuel energy is required to create 1.3 energy units from the resulting ethanol. The energy balance for sugarcane ethanol produced in Brazil is more favorable, with one unit of fossil-fuel energy required to create 8 from the ethanol. Energy balance estimates are not easily produced, thus numerous such reports have been generated that are contradictory. For instance, a separate survey reports that production of ethanol from sugarcane, which requires a tropical climate to grow productively, returns from 8 to 9 units of energy for each unit expended, as compared to corn, which only returns about 1.34 units of fuel energy for each unit of energy expended. A 2006 University of California Berkeley study, after analyzing six separate studies, concluded that producing ethanol from corn uses much less petroleum than producing gasoline.", "idx": 0, "label": false}
|
2 |
+
{"question": "is house tax and property tax are same", "passage": "Property tax -- Property tax or 'house tax' is a local tax on buildings, along with appurtenant land. It is and imposed on the Possessor (not the custodian of property as per 1978, 44th amendment of constitution). It resembles the US-type wealth tax and differs from the excise-type UK rate. The tax power is vested in the states and is delegated to local bodies, specifying the valuation method, rate band, and collection procedures. The tax base is the annual rental value (ARV) or area-based rating. Owner-occupied and other properties not producing rent are assessed on cost and then converted into ARV by applying a percentage of cost, usually four percent. Vacant land is generally exempt. Central government properties are exempt. Instead a 'service charge' is permissible under executive order. Properties of foreign missions also enjoy tax exemption without requiring reciprocity. The tax is usually accompanied by service taxes, e.g., water tax, drainage tax, conservancy (sanitation) tax, lighting tax, all using the same tax base. The rate structure is flat on rural (panchayat) properties, but in the urban (municipal) areas it is mildly progressive with about 80% of assessments falling in the first two brackets.", "idx": 1, "label": true}
|
dummy/cb/1.0.2/dummy_data/CB/test.jsonl
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"premise": "Polly had to think quickly. They were still close enough to shore for him to return her to the police if she admitted she was not an experienced ocean sailor.", "hypothesis": "Polly was not an experienced ocean sailor", "idx": 0}
|
dummy/cb/1.0.2/dummy_data/CB/train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{"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}
|
2 |
+
{"premise": "It is part of their religion, a religion I do not scoff at as it holds many elements which match our own even though it lacks the truth of ours. At one of their great festivals they have the ritual of driving out the devils from their bodies. First the drummers come on - I may say that no women are allowed to take part in this ritual and the ladies here will perhaps agree with me that they are fortunate in that omission.", "hypothesis": "no women are allowed to take part in this ritual", "label": "entailment", "idx": 1}
|
3 |
+
{"premise": "The Paris to Rouen railway was being extended to Le Havre, and the line cut straight through Dr Flaubert's land. Part of it was to be compulsorily purchased. You could say that Gustave was shepherded into creative retreat at Croisset by epilepsy.", "hypothesis": "Gustave was shepherded into creative retreat at Croisset by epilepsy", "label": "entailment", "idx": 2}
|
dummy/cb/1.0.2/dummy_data/CB/val.jsonl
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
{"premise": "Valence the void-brain, Valence the virtuous valet. Why couldn't the figger choose his own portion of titanic anatomy to shaft? Did he think he was helping?", "hypothesis": "Valence was helping", "label": "contradiction", "idx": 0}
|
2 |
+
{"premise": "``Who knows? The point is, do we go with it or not?'' Do we assume there is a shipment?", "hypothesis": "there is a shipment", "label": "neutral", "idx": 1}
|
dummy/copa/1.0.2/dummy_data/COPA.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4387343ff4999895a769a5797a9b2677076ed008617ffd9c44f7b4ed1cc8c2a3
|
3 |
+
size 1307
|
dummy/multirc/1.0.2/dummy_folder.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3783571f84d98bac3678ae61afd1a86e0b5c722a048a18606034ddaf642efbf0
|
3 |
+
size 7826
|
dummy/record/1.0.2/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90bdb549ca6ba21fc4639a320d5b9cc6e42ece62368581a130a4bd2977e461db
|
3 |
+
size 5873
|
dummy/rte/1.0.2/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b780818c97a62824f16b3af565732d21e674ebf5fcd42468bfbd54eb2218c45
|
3 |
+
size 1792
|
dummy/wic/1.0.2/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d74209e60a915f8a787f811f5f05f6b9ac75eba40eb72977f7d3a1e609d8730
|
3 |
+
size 1637
|
dummy/wsc/1.0.2/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:769a81388a5036c972f5660d7f6edad32a7ba145d4466690339ca148175bc2bc
|
3 |
+
size 2053
|
super_glue.py
ADDED
@@ -0,0 +1,626 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
|
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 |
+
|
16 |
+
# Lint as: python3
|
17 |
+
"""The SuperGLUE benchmark."""
|
18 |
+
|
19 |
+
from __future__ import absolute_import, division, print_function
|
20 |
+
|
21 |
+
import json
|
22 |
+
import os
|
23 |
+
|
24 |
+
import six
|
25 |
+
|
26 |
+
import datasets
|
27 |
+
|
28 |
+
|
29 |
+
_SUPER_GLUE_CITATION = """\
|
30 |
+
@article{wang2019superglue,
|
31 |
+
title={SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems},
|
32 |
+
author={Wang, Alex and Pruksachatkun, Yada and Nangia, Nikita and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R},
|
33 |
+
journal={arXiv preprint arXiv:1905.00537},
|
34 |
+
year={2019}
|
35 |
+
}
|
36 |
+
|
37 |
+
Note that each SuperGLUE dataset has its own citation. Please see the source to
|
38 |
+
get the correct citation for each contained dataset.
|
39 |
+
"""
|
40 |
+
|
41 |
+
_GLUE_DESCRIPTION = """\
|
42 |
+
SuperGLUE (https://super.gluebenchmark.com/) is a new benchmark styled after
|
43 |
+
GLUE with a new set of more difficult language understanding tasks, improved
|
44 |
+
resources, and a new public leaderboard.
|
45 |
+
|
46 |
+
"""
|
47 |
+
|
48 |
+
_BOOLQ_DESCRIPTION = """\
|
49 |
+
BoolQ (Boolean Questions, Clark et al., 2019a) is a QA task where each example consists of a short
|
50 |
+
passage and a yes/no question about the passage. The questions are provided anonymously and
|
51 |
+
unsolicited by users of the Google search engine, and afterwards paired with a paragraph from a
|
52 |
+
Wikipedia article containing the answer. Following the original work, we evaluate with accuracy."""
|
53 |
+
|
54 |
+
_CB_DESCRIPTION = """\
|
55 |
+
The CommitmentBank (De Marneffe et al., 2019) is a corpus of short texts in which at least
|
56 |
+
one sentence contains an embedded clause. Each of these embedded clauses is annotated with the
|
57 |
+
degree to which we expect that the person who wrote the text is committed to the truth of the clause.
|
58 |
+
The resulting task framed as three-class textual entailment on examples that are drawn from the Wall
|
59 |
+
Street Journal, fiction from the British National Corpus, and Switchboard. Each example consists
|
60 |
+
of a premise containing an embedded clause and the corresponding hypothesis is the extraction of
|
61 |
+
that clause. We use a subset of the data that had inter-annotator agreement above 0.85. The data is
|
62 |
+
imbalanced (relatively fewer neutral examples), so we evaluate using accuracy and F1, where for
|
63 |
+
multi-class F1 we compute the unweighted average of the F1 per class."""
|
64 |
+
|
65 |
+
_COPA_DESCRIPTION = """\
|
66 |
+
The Choice Of Plausible Alternatives (COPA, Roemmele et al., 2011) dataset is a causal
|
67 |
+
reasoning task in which a system is given a premise sentence and two possible alternatives. The
|
68 |
+
system must choose the alternative which has the more plausible causal relationship with the premise.
|
69 |
+
The method used for the construction of the alternatives ensures that the task requires causal reasoning
|
70 |
+
to solve. Examples either deal with alternative possible causes or alternative possible effects of the
|
71 |
+
premise sentence, accompanied by a simple question disambiguating between the two instance
|
72 |
+
types for the model. All examples are handcrafted and focus on topics from online blogs and a
|
73 |
+
photography-related encyclopedia. Following the recommendation of the authors, we evaluate using
|
74 |
+
accuracy."""
|
75 |
+
|
76 |
+
_RECORD_DESCRIPTION = """\
|
77 |
+
(Reading Comprehension with Commonsense Reasoning Dataset, Zhang et al., 2018) is a
|
78 |
+
multiple-choice QA task. Each example consists of a news article and a Cloze-style question about
|
79 |
+
the article in which one entity is masked out. The system must predict the masked out entity from a
|
80 |
+
given list of possible entities in the provided passage, where the same entity may be expressed using
|
81 |
+
multiple different surface forms, all of which are considered correct. Articles are drawn from CNN
|
82 |
+
and Daily Mail. Following the original work, we evaluate with max (over all mentions) token-level
|
83 |
+
F1 and exact match (EM)."""
|
84 |
+
|
85 |
+
_RTE_DESCRIPTION = """\
|
86 |
+
The Recognizing Textual Entailment (RTE) datasets come from a series of annual competitions
|
87 |
+
on textual entailment, the problem of predicting whether a given premise sentence entails a given
|
88 |
+
hypothesis sentence (also known as natural language inference, NLI). RTE was previously included
|
89 |
+
in GLUE, and we use the same data and format as before: We merge data from RTE1 (Dagan
|
90 |
+
et al., 2006), RTE2 (Bar Haim et al., 2006), RTE3 (Giampiccolo et al., 2007), and RTE5 (Bentivogli
|
91 |
+
et al., 2009). All datasets are combined and converted to two-class classification: entailment and
|
92 |
+
not_entailment. Of all the GLUE tasks, RTE was among those that benefited from transfer learning
|
93 |
+
the most, jumping from near random-chance performance (~56%) at the time of GLUE's launch to
|
94 |
+
85% accuracy (Liu et al., 2019c) at the time of writing. Given the eight point gap with respect to
|
95 |
+
human performance, however, the task is not yet solved by machines, and we expect the remaining
|
96 |
+
gap to be difficult to close."""
|
97 |
+
|
98 |
+
_MULTIRC_DESCRIPTION = """\
|
99 |
+
The Multi-Sentence Reading Comprehension dataset (MultiRC, Khashabi et al., 2018)
|
100 |
+
is a true/false question-answering task. Each example consists of a context paragraph, a question
|
101 |
+
about that paragraph, and a list of possible answers to that question which must be labeled as true or
|
102 |
+
false. Question-answering (QA) is a popular problem with many datasets. We use MultiRC because
|
103 |
+
of a number of desirable properties: (i) each question can have multiple possible correct answers,
|
104 |
+
so each question-answer pair must be evaluated independent of other pairs, (ii) the questions are
|
105 |
+
designed such that answering each question requires drawing facts from multiple context sentences,
|
106 |
+
and (iii) the question-answer pair format more closely matches the API of other SuperGLUE tasks
|
107 |
+
than span-based extractive QA does. The paragraphs are drawn from seven domains including news,
|
108 |
+
fiction, and historical text."""
|
109 |
+
|
110 |
+
_WIC_DESCRIPTION = """\
|
111 |
+
The Word-in-Context (WiC, Pilehvar and Camacho-Collados, 2019) dataset supports a word
|
112 |
+
sense disambiguation task cast as binary classification over sentence pairs. Given two sentences and a
|
113 |
+
polysemous (sense-ambiguous) word that appears in both sentences, the task is to determine whether
|
114 |
+
the word is used with the same sense in both sentences. Sentences are drawn from WordNet (Miller,
|
115 |
+
1995), VerbNet (Schuler, 2005), and Wiktionary. We follow the original work and evaluate using
|
116 |
+
accuracy."""
|
117 |
+
|
118 |
+
_WSC_DESCRIPTION = """\
|
119 |
+
The Winograd Schema Challenge (WSC, Levesque et al., 2012) is a reading comprehension
|
120 |
+
task in which a system must read a sentence with a pronoun and select the referent of that pronoun
|
121 |
+
from a list of choices. Given the difficulty of this task and the headroom still left, we have included
|
122 |
+
WSC in SuperGLUE and recast the dataset into its coreference form. The task is cast as a binary
|
123 |
+
classification problem, as opposed to N-multiple choice, in order to isolate the model's ability to
|
124 |
+
understand the coreference links within a sentence as opposed to various other strategies that may
|
125 |
+
come into play in multiple choice conditions. With that in mind, we create a split with 65% negative
|
126 |
+
majority class in the validation set, reflecting the distribution of the hidden test set, and 52% negative
|
127 |
+
class in the training set. The training and validation examples are drawn from the original Winograd
|
128 |
+
Schema dataset (Levesque et al., 2012), as well as those distributed by the affiliated organization
|
129 |
+
Commonsense Reasoning. The test examples are derived from fiction books and have been shared
|
130 |
+
with us by the authors of the original dataset. Previously, a version of WSC recast as NLI as included
|
131 |
+
in GLUE, known as WNLI. No substantial progress was made on WNLI, with many submissions
|
132 |
+
opting to submit only majority class predictions. WNLI was made especially difficult due to an
|
133 |
+
adversarial train/dev split: Premise sentences that appeared in the training set sometimes appeared
|
134 |
+
in the development set with a different hypothesis and a flipped label. If a system memorized the
|
135 |
+
training set without meaningfully generalizing, which was easy due to the small size of the training
|
136 |
+
set, it could perform far below chance on the development set. We remove this adversarial design
|
137 |
+
in the SuperGLUE version of WSC by ensuring that no sentences are shared between the training,
|
138 |
+
validation, and test sets.
|
139 |
+
|
140 |
+
However, the validation and test sets come from different domains, with the validation set consisting
|
141 |
+
of ambiguous examples such that changing one non-noun phrase word will change the coreference
|
142 |
+
dependencies in the sentence. The test set consists only of more straightforward examples, with a
|
143 |
+
high number of noun phrases (and thus more choices for the model), but low to no ambiguity."""
|
144 |
+
|
145 |
+
_AXB_DESCRIPTION = """\
|
146 |
+
An expert-constructed,
|
147 |
+
diagnostic dataset that automatically tests models for a broad range of linguistic, commonsense, and
|
148 |
+
world knowledge. Each example in this broad-coverage diagnostic is a sentence pair labeled with
|
149 |
+
a three-way entailment relation (entailment, neutral, or contradiction) and tagged with labels that
|
150 |
+
indicate the phenomena that characterize the relationship between the two sentences. Submissions
|
151 |
+
to the GLUE leaderboard are required to include predictions from the submission's MultiNLI
|
152 |
+
classifier on the diagnostic dataset, and analyses of the results were shown alongside the main
|
153 |
+
leaderboard. Since this broad-coverage diagnostic task has proved difficult for top models, we retain
|
154 |
+
it in SuperGLUE. However, since MultiNLI is not part of SuperGLUE, we collapse contradiction
|
155 |
+
and neutral into a single not_entailment label, and request that submissions include predictions
|
156 |
+
on the resulting set from the model used for the RTE task.
|
157 |
+
"""
|
158 |
+
|
159 |
+
_AXG_DESCRIPTION = """\
|
160 |
+
Winogender is designed to measure gender
|
161 |
+
bias in coreference resolution systems. We use the Diverse Natural Language Inference Collection
|
162 |
+
(DNC; Poliak et al., 2018) version that casts Winogender as a textual entailment task. Each example
|
163 |
+
consists of a premise sentence with a male or female pronoun and a hypothesis giving a possible
|
164 |
+
antecedent of the pronoun. Examples occur in minimal pairs, where the only difference between
|
165 |
+
an example and its pair is the gender of the pronoun in the premise. Performance on Winogender
|
166 |
+
is measured with both accuracy and the gender parity score: the percentage of minimal pairs for
|
167 |
+
which the predictions are the same. We note that a system can trivially obtain a perfect gender parity
|
168 |
+
score by guessing the same class for all examples, so a high gender parity score is meaningless unless
|
169 |
+
accompanied by high accuracy. As a diagnostic test of gender bias, we view the schemas as having high
|
170 |
+
positive predictive value and low negative predictive value; that is, they may demonstrate the presence
|
171 |
+
of gender bias in a system, but not prove its absence.
|
172 |
+
"""
|
173 |
+
|
174 |
+
_BOOLQ_CITATION = """\
|
175 |
+
@inproceedings{clark2019boolq,
|
176 |
+
title={BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions},
|
177 |
+
author={Clark, Christopher and Lee, Kenton and Chang, Ming-Wei, and Kwiatkowski, Tom and Collins, Michael, and Toutanova, Kristina},
|
178 |
+
booktitle={NAACL},
|
179 |
+
year={2019}
|
180 |
+
}"""
|
181 |
+
|
182 |
+
_CB_CITATION = """\
|
183 |
+
@article{de marneff_simons_tonhauser_2019,
|
184 |
+
title={The CommitmentBank: Investigating projection in naturally occurring discourse},
|
185 |
+
journal={proceedings of Sinn und Bedeutung 23},
|
186 |
+
author={De Marneff, Marie-Catherine and Simons, Mandy and Tonhauser, Judith},
|
187 |
+
year={2019}
|
188 |
+
}"""
|
189 |
+
|
190 |
+
_COPA_CITATION = """\
|
191 |
+
@inproceedings{roemmele2011choice,
|
192 |
+
title={Choice of plausible alternatives: An evaluation of commonsense causal reasoning},
|
193 |
+
author={Roemmele, Melissa and Bejan, Cosmin Adrian and Gordon, Andrew S},
|
194 |
+
booktitle={2011 AAAI Spring Symposium Series},
|
195 |
+
year={2011}
|
196 |
+
}"""
|
197 |
+
|
198 |
+
_RECORD_CITATION = """\
|
199 |
+
@article{zhang2018record,
|
200 |
+
title={Record: Bridging the gap between human and machine commonsense reading comprehension},
|
201 |
+
author={Zhang, Sheng and Liu, Xiaodong and Liu, Jingjing and Gao, Jianfeng and Duh, Kevin and Van Durme, Benjamin},
|
202 |
+
journal={arXiv preprint arXiv:1810.12885},
|
203 |
+
year={2018}
|
204 |
+
}"""
|
205 |
+
|
206 |
+
_RTE_CITATION = """\
|
207 |
+
@inproceedings{dagan2005pascal,
|
208 |
+
title={The PASCAL recognising textual entailment challenge},
|
209 |
+
author={Dagan, Ido and Glickman, Oren and Magnini, Bernardo},
|
210 |
+
booktitle={Machine Learning Challenges Workshop},
|
211 |
+
pages={177--190},
|
212 |
+
year={2005},
|
213 |
+
organization={Springer}
|
214 |
+
}
|
215 |
+
@inproceedings{bar2006second,
|
216 |
+
title={The second pascal recognising textual entailment challenge},
|
217 |
+
author={Bar-Haim, Roy and Dagan, Ido and Dolan, Bill and Ferro, Lisa and Giampiccolo, Danilo and Magnini, Bernardo and Szpektor, Idan},
|
218 |
+
booktitle={Proceedings of the second PASCAL challenges workshop on recognising textual entailment},
|
219 |
+
volume={6},
|
220 |
+
number={1},
|
221 |
+
pages={6--4},
|
222 |
+
year={2006},
|
223 |
+
organization={Venice}
|
224 |
+
}
|
225 |
+
@inproceedings{giampiccolo2007third,
|
226 |
+
title={The third pascal recognizing textual entailment challenge},
|
227 |
+
author={Giampiccolo, Danilo and Magnini, Bernardo and Dagan, Ido and Dolan, Bill},
|
228 |
+
booktitle={Proceedings of the ACL-PASCAL workshop on textual entailment and paraphrasing},
|
229 |
+
pages={1--9},
|
230 |
+
year={2007},
|
231 |
+
organization={Association for Computational Linguistics}
|
232 |
+
}
|
233 |
+
@inproceedings{bentivogli2009fifth,
|
234 |
+
title={The Fifth PASCAL Recognizing Textual Entailment Challenge.},
|
235 |
+
author={Bentivogli, Luisa and Clark, Peter and Dagan, Ido and Giampiccolo, Danilo},
|
236 |
+
booktitle={TAC},
|
237 |
+
year={2009}
|
238 |
+
}"""
|
239 |
+
|
240 |
+
_MULTIRC_CITATION = """\
|
241 |
+
@inproceedings{MultiRC2018,
|
242 |
+
author = {Daniel Khashabi and Snigdha Chaturvedi and Michael Roth and Shyam Upadhyay and Dan Roth},
|
243 |
+
title = {Looking Beyond the Surface:A Challenge Set for Reading Comprehension over Multiple Sentences},
|
244 |
+
booktitle = {Proceedings of North American Chapter of the Association for Computational Linguistics (NAACL)},
|
245 |
+
year = {2018}
|
246 |
+
}"""
|
247 |
+
|
248 |
+
_WIC_CITATION = """\
|
249 |
+
@article{DBLP:journals/corr/abs-1808-09121,
|
250 |
+
author={Mohammad Taher Pilehvar and os{\'{e}} Camacho{-}Collados},
|
251 |
+
title={WiC: 10, 000 Example Pairs for Evaluating Context-Sensitive Representations},
|
252 |
+
journal={CoRR},
|
253 |
+
volume={abs/1808.09121},
|
254 |
+
year={2018},
|
255 |
+
url={http://arxiv.org/abs/1808.09121},
|
256 |
+
archivePrefix={arXiv},
|
257 |
+
eprint={1808.09121},
|
258 |
+
timestamp={Mon, 03 Sep 2018 13:36:40 +0200},
|
259 |
+
biburl={https://dblp.org/rec/bib/journals/corr/abs-1808-09121},
|
260 |
+
bibsource={dblp computer science bibliography, https://dblp.org}
|
261 |
+
}"""
|
262 |
+
|
263 |
+
_WSC_CITATION = """\
|
264 |
+
@inproceedings{levesque2012winograd,
|
265 |
+
title={The winograd schema challenge},
|
266 |
+
author={Levesque, Hector and Davis, Ernest and Morgenstern, Leora},
|
267 |
+
booktitle={Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning},
|
268 |
+
year={2012}
|
269 |
+
}"""
|
270 |
+
|
271 |
+
_AXG_CITATION = """\
|
272 |
+
@inproceedings{rudinger-EtAl:2018:N18,
|
273 |
+
author = {Rudinger, Rachel and Naradowsky, Jason and Leonard, Brian and {Van Durme}, Benjamin},
|
274 |
+
title = {Gender Bias in Coreference Resolution},
|
275 |
+
booktitle = {Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
|
276 |
+
month = {June},
|
277 |
+
year = {2018},
|
278 |
+
address = {New Orleans, Louisiana},
|
279 |
+
publisher = {Association for Computational Linguistics}
|
280 |
+
}
|
281 |
+
"""
|
282 |
+
|
283 |
+
|
284 |
+
class SuperGlueConfig(datasets.BuilderConfig):
|
285 |
+
"""BuilderConfig for SuperGLUE."""
|
286 |
+
|
287 |
+
def __init__(self, features, data_url, citation, url, label_classes=("False", "True"), **kwargs):
|
288 |
+
"""BuilderConfig for SuperGLUE.
|
289 |
+
|
290 |
+
Args:
|
291 |
+
features: `list[string]`, list of the features that will appear in the
|
292 |
+
feature dict. Should not include "label".
|
293 |
+
data_url: `string`, url to download the zip file from.
|
294 |
+
citation: `string`, citation for the data set.
|
295 |
+
url: `string`, url for information about the data set.
|
296 |
+
label_classes: `list[string]`, the list of classes for the label if the
|
297 |
+
label is present as a string. Non-string labels will be cast to either
|
298 |
+
'False' or 'True'.
|
299 |
+
**kwargs: keyword arguments forwarded to super.
|
300 |
+
"""
|
301 |
+
# Version history:
|
302 |
+
# 1.0.2: Fixed non-nondeterminism in ReCoRD.
|
303 |
+
# 1.0.1: Change from the pre-release trial version of SuperGLUE (v1.9) to
|
304 |
+
# the full release (v2.0).
|
305 |
+
# 1.0.0: S3 (new shuffling, sharding and slicing mechanism).
|
306 |
+
# 0.0.2: Initial version.
|
307 |
+
super(SuperGlueConfig, self).__init__(version=datasets.Version("1.0.2"), **kwargs)
|
308 |
+
self.features = features
|
309 |
+
self.label_classes = label_classes
|
310 |
+
self.data_url = data_url
|
311 |
+
self.citation = citation
|
312 |
+
self.url = url
|
313 |
+
|
314 |
+
|
315 |
+
class SuperGlue(datasets.GeneratorBasedBuilder):
|
316 |
+
"""The SuperGLUE benchmark."""
|
317 |
+
|
318 |
+
BUILDER_CONFIGS = [
|
319 |
+
SuperGlueConfig(
|
320 |
+
name="boolq",
|
321 |
+
description=_BOOLQ_DESCRIPTION,
|
322 |
+
features=["question", "passage"],
|
323 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/BoolQ.zip",
|
324 |
+
citation=_BOOLQ_CITATION,
|
325 |
+
url="https://github.com/google-research-datasets/boolean-questions",
|
326 |
+
),
|
327 |
+
SuperGlueConfig(
|
328 |
+
name="cb",
|
329 |
+
description=_CB_DESCRIPTION,
|
330 |
+
features=["premise", "hypothesis"],
|
331 |
+
label_classes=["entailment", "contradiction", "neutral"],
|
332 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/CB.zip",
|
333 |
+
citation=_CB_CITATION,
|
334 |
+
url="https://github.com/mcdm/CommitmentBank",
|
335 |
+
),
|
336 |
+
SuperGlueConfig(
|
337 |
+
name="copa",
|
338 |
+
description=_COPA_DESCRIPTION,
|
339 |
+
label_classes=["choice1", "choice2"],
|
340 |
+
# Note that question will only be the X in the statement "What's
|
341 |
+
# the X for this?".
|
342 |
+
features=["premise", "choice1", "choice2", "question"],
|
343 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/COPA.zip",
|
344 |
+
citation=_COPA_CITATION,
|
345 |
+
url="http://people.ict.usc.edu/~gordon/copa.html",
|
346 |
+
),
|
347 |
+
SuperGlueConfig(
|
348 |
+
name="multirc",
|
349 |
+
description=_MULTIRC_DESCRIPTION,
|
350 |
+
features=["paragraph", "question", "answer"],
|
351 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/MultiRC.zip",
|
352 |
+
citation=_MULTIRC_CITATION,
|
353 |
+
url="https://cogcomp.org/multirc/",
|
354 |
+
),
|
355 |
+
SuperGlueConfig(
|
356 |
+
name="record",
|
357 |
+
description=_RECORD_DESCRIPTION,
|
358 |
+
# Note that entities and answers will be a sequences of strings. Query
|
359 |
+
# will contain @placeholder as a substring, which represents the word
|
360 |
+
# to be substituted in.
|
361 |
+
features=["passage", "query", "entities", "answers"],
|
362 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/ReCoRD.zip",
|
363 |
+
citation=_RECORD_CITATION,
|
364 |
+
url="https://sheng-z.github.io/ReCoRD-explorer/",
|
365 |
+
),
|
366 |
+
SuperGlueConfig(
|
367 |
+
name="rte",
|
368 |
+
description=_RTE_DESCRIPTION,
|
369 |
+
features=["premise", "hypothesis"],
|
370 |
+
label_classes=["entailment", "not_entailment"],
|
371 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/RTE.zip",
|
372 |
+
citation=_RTE_CITATION,
|
373 |
+
url="https://aclweb.org/aclwiki/Recognizing_Textual_Entailment",
|
374 |
+
),
|
375 |
+
SuperGlueConfig(
|
376 |
+
name="wic",
|
377 |
+
description=_WIC_DESCRIPTION,
|
378 |
+
# Note that start1, start2, end1, and end2 will be integers stored as
|
379 |
+
# datasets.Value('int32').
|
380 |
+
features=["word", "sentence1", "sentence2", "start1", "start2", "end1", "end2"],
|
381 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/WiC.zip",
|
382 |
+
citation=_WIC_CITATION,
|
383 |
+
url="https://pilehvar.github.io/wic/",
|
384 |
+
),
|
385 |
+
SuperGlueConfig(
|
386 |
+
name="wsc",
|
387 |
+
description=_WSC_DESCRIPTION,
|
388 |
+
# Note that span1_index and span2_index will be integers stored as
|
389 |
+
# datasets.Value('int32').
|
390 |
+
features=["text", "span1_index", "span2_index", "span1_text", "span2_text"],
|
391 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/WSC.zip",
|
392 |
+
citation=_WSC_CITATION,
|
393 |
+
url="https://cs.nyu.edu/faculty/davise/papers/WinogradSchemas/WS.html",
|
394 |
+
),
|
395 |
+
SuperGlueConfig(
|
396 |
+
name="wsc.fixed",
|
397 |
+
description=(
|
398 |
+
_WSC_DESCRIPTION + "\n\nThis version fixes issues where the spans are not actually "
|
399 |
+
"substrings of the text."
|
400 |
+
),
|
401 |
+
# Note that span1_index and span2_index will be integers stored as
|
402 |
+
# datasets.Value('int32').
|
403 |
+
features=["text", "span1_index", "span2_index", "span1_text", "span2_text"],
|
404 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/WSC.zip",
|
405 |
+
citation=_WSC_CITATION,
|
406 |
+
url="https://cs.nyu.edu/faculty/davise/papers/WinogradSchemas/WS.html",
|
407 |
+
),
|
408 |
+
SuperGlueConfig(
|
409 |
+
name="axb",
|
410 |
+
description=_AXB_DESCRIPTION,
|
411 |
+
features=["sentence1", "sentence2"],
|
412 |
+
label_classes=["entailment", "not_entailment"],
|
413 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/AX-b.zip",
|
414 |
+
citation="", # The GLUE citation is sufficient.
|
415 |
+
url="https://gluebenchmark.com/diagnostics",
|
416 |
+
),
|
417 |
+
SuperGlueConfig(
|
418 |
+
name="axg",
|
419 |
+
description=_AXG_DESCRIPTION,
|
420 |
+
features=["premise", "hypothesis"],
|
421 |
+
label_classes=["entailment", "not_entailment"],
|
422 |
+
data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/AX-g.zip",
|
423 |
+
citation=_AXG_CITATION,
|
424 |
+
url="https://github.com/rudinger/winogender-schemas",
|
425 |
+
),
|
426 |
+
]
|
427 |
+
|
428 |
+
def _info(self):
|
429 |
+
features = {feature: datasets.Value("string") for feature in self.config.features}
|
430 |
+
if self.config.name.startswith("wsc"):
|
431 |
+
features["span1_index"] = datasets.Value("int32")
|
432 |
+
features["span2_index"] = datasets.Value("int32")
|
433 |
+
if self.config.name == "wic":
|
434 |
+
features["start1"] = datasets.Value("int32")
|
435 |
+
features["start2"] = datasets.Value("int32")
|
436 |
+
features["end1"] = datasets.Value("int32")
|
437 |
+
features["end2"] = datasets.Value("int32")
|
438 |
+
if self.config.name == "multirc":
|
439 |
+
features["idx"] = dict(
|
440 |
+
{
|
441 |
+
"paragraph": datasets.Value("int32"),
|
442 |
+
"question": datasets.Value("int32"),
|
443 |
+
"answer": datasets.Value("int32"),
|
444 |
+
}
|
445 |
+
)
|
446 |
+
elif self.config.name == "record":
|
447 |
+
features["idx"] = dict(
|
448 |
+
{
|
449 |
+
"passage": datasets.Value("int32"),
|
450 |
+
"query": datasets.Value("int32"),
|
451 |
+
}
|
452 |
+
)
|
453 |
+
else:
|
454 |
+
features["idx"] = datasets.Value("int32")
|
455 |
+
|
456 |
+
if self.config.name == "record":
|
457 |
+
# Entities are the set of possible choices for the placeholder.
|
458 |
+
features["entities"] = datasets.features.Sequence(datasets.Value("string"))
|
459 |
+
# Answers are the subset of entities that are correct.
|
460 |
+
features["answers"] = datasets.features.Sequence(datasets.Value("string"))
|
461 |
+
else:
|
462 |
+
features["label"] = datasets.features.ClassLabel(names=self.config.label_classes)
|
463 |
+
|
464 |
+
return datasets.DatasetInfo(
|
465 |
+
description=_GLUE_DESCRIPTION + self.config.description,
|
466 |
+
features=datasets.Features(features),
|
467 |
+
homepage=self.config.url,
|
468 |
+
citation=self.config.citation + "\n" + _SUPER_GLUE_CITATION,
|
469 |
+
)
|
470 |
+
|
471 |
+
def _split_generators(self, dl_manager):
|
472 |
+
dl_dir = dl_manager.download_and_extract(self.config.data_url) or ""
|
473 |
+
task_name = _get_task_name_from_data_url(self.config.data_url)
|
474 |
+
dl_dir = os.path.join(dl_dir, task_name)
|
475 |
+
if self.config.name in ["axb", "axg"]:
|
476 |
+
return [
|
477 |
+
datasets.SplitGenerator(
|
478 |
+
name=datasets.Split.TEST,
|
479 |
+
gen_kwargs={
|
480 |
+
"data_file": os.path.join(dl_dir, "{}.jsonl".format(task_name)),
|
481 |
+
"split": datasets.Split.TEST,
|
482 |
+
},
|
483 |
+
),
|
484 |
+
]
|
485 |
+
return [
|
486 |
+
datasets.SplitGenerator(
|
487 |
+
name=datasets.Split.TRAIN,
|
488 |
+
gen_kwargs={
|
489 |
+
"data_file": os.path.join(dl_dir, "train.jsonl"),
|
490 |
+
"split": datasets.Split.TRAIN,
|
491 |
+
},
|
492 |
+
),
|
493 |
+
datasets.SplitGenerator(
|
494 |
+
name=datasets.Split.VALIDATION,
|
495 |
+
gen_kwargs={
|
496 |
+
"data_file": os.path.join(dl_dir, "val.jsonl"),
|
497 |
+
"split": datasets.Split.VALIDATION,
|
498 |
+
},
|
499 |
+
),
|
500 |
+
datasets.SplitGenerator(
|
501 |
+
name=datasets.Split.TEST,
|
502 |
+
gen_kwargs={
|
503 |
+
"data_file": os.path.join(dl_dir, "test.jsonl"),
|
504 |
+
"split": datasets.Split.TEST,
|
505 |
+
},
|
506 |
+
),
|
507 |
+
]
|
508 |
+
|
509 |
+
def _generate_examples(self, data_file, split):
|
510 |
+
with open(data_file, encoding="utf-8") as f:
|
511 |
+
for line in f:
|
512 |
+
row = json.loads(line)
|
513 |
+
|
514 |
+
if self.config.name == "multirc":
|
515 |
+
paragraph = row["passage"]
|
516 |
+
for question in paragraph["questions"]:
|
517 |
+
for answer in question["answers"]:
|
518 |
+
label = answer.get("label")
|
519 |
+
key = "%s_%s_%s" % (row["idx"], question["idx"], answer["idx"])
|
520 |
+
yield key, {
|
521 |
+
"paragraph": paragraph["text"],
|
522 |
+
"question": question["question"],
|
523 |
+
"answer": answer["text"],
|
524 |
+
"label": -1 if label is None else _cast_label(bool(label)),
|
525 |
+
"idx": {"paragraph": row["idx"], "question": question["idx"], "answer": answer["idx"]},
|
526 |
+
}
|
527 |
+
elif self.config.name == "record":
|
528 |
+
passage = row["passage"]
|
529 |
+
for qa in row["qas"]:
|
530 |
+
yield qa["idx"], {
|
531 |
+
"passage": passage["text"],
|
532 |
+
"query": qa["query"],
|
533 |
+
"entities": _get_record_entities(passage),
|
534 |
+
"answers": _get_record_answers(qa),
|
535 |
+
"idx": {"passage": row["idx"], "query": qa["idx"]},
|
536 |
+
}
|
537 |
+
else:
|
538 |
+
if self.config.name.startswith("wsc"):
|
539 |
+
row.update(row["target"])
|
540 |
+
example = {feature: row[feature] for feature in self.config.features}
|
541 |
+
if self.config.name == "wsc.fixed":
|
542 |
+
example = _fix_wst(example)
|
543 |
+
example["idx"] = row["idx"]
|
544 |
+
|
545 |
+
if "label" in row:
|
546 |
+
if self.config.name == "copa":
|
547 |
+
example["label"] = "choice2" if row["label"] else "choice1"
|
548 |
+
else:
|
549 |
+
example["label"] = _cast_label(row["label"])
|
550 |
+
else:
|
551 |
+
assert split == datasets.Split.TEST, row
|
552 |
+
example["label"] = -1
|
553 |
+
yield example["idx"], example
|
554 |
+
|
555 |
+
|
556 |
+
def _fix_wst(ex):
|
557 |
+
"""Fixes most cases where spans are not actually substrings of text."""
|
558 |
+
|
559 |
+
def _fix_span_text(k):
|
560 |
+
"""Fixes a single span."""
|
561 |
+
text = ex[k + "_text"]
|
562 |
+
index = ex[k + "_index"]
|
563 |
+
|
564 |
+
if text in ex["text"]:
|
565 |
+
return
|
566 |
+
|
567 |
+
if text in ("Kamenev and Zinoviev", "Kamenev, Zinoviev, and Stalin"):
|
568 |
+
# There is no way to correct these examples since the subjects have
|
569 |
+
# intervening text.
|
570 |
+
return
|
571 |
+
|
572 |
+
if "theyscold" in text:
|
573 |
+
ex["text"].replace("theyscold", "they scold")
|
574 |
+
ex["span2_index"] = 10
|
575 |
+
# Make sure case of the first words match.
|
576 |
+
first_word = ex["text"].split()[index]
|
577 |
+
if first_word[0].islower():
|
578 |
+
text = text[0].lower() + text[1:]
|
579 |
+
else:
|
580 |
+
text = text[0].upper() + text[1:]
|
581 |
+
# Remove punctuation in span.
|
582 |
+
text = text.rstrip(".")
|
583 |
+
# Replace incorrect whitespace character in span.
|
584 |
+
text = text.replace("\n", " ")
|
585 |
+
ex[k + "_text"] = text
|
586 |
+
assert ex[k + "_text"] in ex["text"], ex
|
587 |
+
|
588 |
+
_fix_span_text("span1")
|
589 |
+
_fix_span_text("span2")
|
590 |
+
return ex
|
591 |
+
|
592 |
+
|
593 |
+
def _cast_label(label):
|
594 |
+
"""Converts the label into the appropriate string version."""
|
595 |
+
if isinstance(label, six.string_types):
|
596 |
+
return label
|
597 |
+
elif isinstance(label, bool):
|
598 |
+
return "True" if label else "False"
|
599 |
+
elif isinstance(label, six.integer_types):
|
600 |
+
assert label in (0, 1)
|
601 |
+
return str(label)
|
602 |
+
else:
|
603 |
+
raise ValueError("Invalid label format.")
|
604 |
+
|
605 |
+
|
606 |
+
def _get_record_entities(passage):
|
607 |
+
"""Returns the unique set of entities."""
|
608 |
+
text = passage["text"]
|
609 |
+
entities = set()
|
610 |
+
for entity in passage["entities"]:
|
611 |
+
entities.add(text[entity["start"] : entity["end"] + 1])
|
612 |
+
return sorted(entities)
|
613 |
+
|
614 |
+
|
615 |
+
def _get_record_answers(qa):
|
616 |
+
"""Returns the unique set of answers."""
|
617 |
+
if "answers" not in qa:
|
618 |
+
return []
|
619 |
+
answers = set()
|
620 |
+
for answer in qa["answers"]:
|
621 |
+
answers.add(answer["text"])
|
622 |
+
return sorted(answers)
|
623 |
+
|
624 |
+
|
625 |
+
def _get_task_name_from_data_url(data_url):
|
626 |
+
return data_url.split("/")[-1].split(".")[0]
|