Datasets:

Tasks:
Other
Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
mariosasko commited on
Commit
db48520
1 Parent(s): 255b4bb

Convert to no-code dataset (#18)

Browse files

- Convert to no-code dataset (c4040c73d8331bc14d10c94e375433526b9ea06b)
- Upload dataset (3ad6339362cb0f9a11d7b1d6f366b13202108a52)
- Upload dataset (e5c77031815b028e059719a23dd8d8f61d6015fe)
- Upload dataset (dc216bb1b2a23ff611b50c60012b196a4142482d)
- Upload dataset (b006f86dafc99819365c94877ba28ed76dd03380)
- Upload dataset (9ef290bee6b90a48707a2ee61b2a55080824b55f)
- Upload dataset (bd01d748726b02e26cf1d0f0c1aa38e422b4c634)
- Upload dataset (77f23e7a71d7223cc94fb65928078638de6c212d)
- Upload dataset (c4d5f0561f2d2461a67effb9878c9938d4c7d5f2)
- Upload dataset (cae1088ca6fb16f95344af65c6e68df160970a2f)
- Upload dataset (47c4e6dfd80fb7b6435ecc8f56a31ae4b0aa732a)
- Upload dataset (5c3bffe9379652b23d43fd7611bbe02e89ef1112)
- Upload dataset (fa7f1559cd77bd3fa3ad9892235ec5aae3283dee)
- Upload dataset (213c8f1e802ec7f825e11b30eaf2048b136cd5cf)
- Upload dataset (3ac40881bcfdcbcf0ddca7d9b43a6ecd23572eb6)
- Upload dataset (7c645961e4ec7ace3ad69582f9dc4c7267135cf5)
- Upload dataset (a06b2d5b6c8dbd1f2ba6bd8acc70fb2417b8ee05)
- Upload dataset (bfbbc71a53a7ab8bf831a1c8b686a1f502940797)
- Upload dataset (3cb8b6a4bd9d0905bfe3d2886d548caf1972c822)
- Upload dataset (7befa12e6051c7fca935da79dff0cf8ae03d6d36)
- Upload dataset (e9f3e1ba7cd1011615d1c4b38cf2c6377efcb586)
- Upload dataset (fc1399c39fe4d0716f2c3b087a8f0da38b34f77d)
- Upload dataset (7d7cf989c3180cee3035616ae57f734660b9615b)
- Upload dataset (b449601732a37ad496486b6c42e569ebdf59ce76)
- Upload dataset (175b96d2b2089845a69b232a46a12ea4df5a669f)
- Upload dataset (53e02959d6c7763a566633ed4331af7db444ab03)
- Upload dataset (d0805458c7dd2116893772bacec737ad33ccc9fe)
- Upload dataset (8d05dc7e55490b1b0ad8bc41fce8854e9f58b0f7)
- Upload dataset (b9dabf4ed2d386983899d7690a76c6d974ba7525)
- Upload dataset (79bb5acbabafe5bddfc12f790f5477ca0e1d381a)
- Upload dataset (50f0f7c392430411bd9951a5b4dfda7b04a3d775)
- Upload dataset (6da64b7ffded1cb047cf18ea1112092d27f8f691)
- Upload dataset (00f91e1975274d17a4efb036df2c6f11f4c3a59b)
- Upload dataset (85271f1051becc4cdbcba0a933d21f1326408f47)
- Upload dataset (514d5605fade224a2477d9df727555c93311056a)
- Upload dataset (049457ceec17117aefbddca7e4ce849430b15f4c)
- Upload dataset (b5f74ce207542a2431ddc7980c6356d4a7f65dcb)
- Upload dataset (a51c89f7bd8c722744b291b7dc568973b82c33e1)
- Upload dataset (662adc42e7b324cad4d387719fd84aad5952a175)
- Upload dataset (793077862f2cbd8c00f8048e78c57acd97e50ae3)
- Upload dataset (6f1f5cc7f8f057cbdfd6cf37581821c4eb55f005)
- Upload dataset (e76303fdf7bd558ce1192654b51ea547dc29df36)
- Upload dataset (ddeb5693789e7c2a1301228c6b3052d3f93bfcda)
- Upload dataset (cada788e43a1eb49d01a912f75e98503f92a41e9)
- Upload dataset (f2262e5f969f403fd0dade9ac5295bf67e7ad845)
- Upload dataset (96647db3af26e0ad1c472aa887edc192869752ee)
- Upload dataset (9bb3e76a17b26bf66a391d9b6e46d34da57d8b85)
- Upload dataset (0efe84a0f69bb7e464eed2b52d2df56966a9af0b)
- Upload dataset (b86aeaee5538bd189f41ca933b54db13fee077bb)
- Upload dataset (5c2c818c4b124027ecabf154a96e9500a9e3dd5b)
- Upload dataset (9baacb4b2c2786f12f8c4067eb46a2180339a2aa)
- Upload dataset (9fb397d9704ea86a298822612664f8817c582547)
- Upload dataset (02d04be70eb11f42c0b47635258c540ec5038753)
- Upload dataset (763434a8abc97960b06395b060561d0ac5d2102a)
- Upload dataset (33a97d7b464c3bb3e4c55aa8fd29d2a202e5d9db)
- Upload dataset (696fce7103165f97c6002087029743ad372ffa01)
- Upload dataset (31d0acabe7d386a8b1b0b5685a8c37be3337391f)
- Upload dataset (2137667236d01b17e2024c16ebc41bf43a85fb4c)
- Upload dataset (520cfc739ae4dfd0d37a99a67807596f3e4b5c4b)
- Upload dataset (fc70d744a8887f5f5ad408026569d7d29152b2cc)
- Upload dataset (6e33ada538195c5829dfba1bcf8f98affbd8f250)
- Upload dataset (88c6a4cfce42d75d695a2d364ea2b852f51ad6cc)
- Upload dataset (eb249ae745d01702030e2dd5ffae0615cfe2a0e0)
- Upload dataset (df6922a7ae200bec3cedb26c997bc23a871cddc1)
- Upload dataset (7ef92145ea1ab114f311f7ff644aeb82fd08da45)
- Upload dataset (35fe336a5bd05def0588b7c71b1819d4cec7be4d)
- Upload dataset (4d389dadb1a5a7c33474d37c9d3605c0723c4963)
- Upload dataset (bc30485e1fa8014d10a316fa4f147fda50e227c6)
- Upload dataset (58af3b45cefeceda718f28c2e58123d7b066b6ff)
- Upload dataset (d871b7a91695b795e7cceb69c4cbdb0257a71215)
- Upload dataset (2a8b894118dd22be9f83c0c076a0ccc8a0137f14)
- Upload dataset (1c33414271c2478a888962ae281fe129b9a041f4)
- Upload dataset (f03400ec4e6d3507fd21b83ce93725b22ae38bc7)
- Upload dataset (9e7d480109723c79806860604926c23ed4874a78)
- Upload dataset (25014238d0a768300b84fcec3739ee530c6e87a5)
- Upload dataset (b0ae0504ef7b17e4994432c7b6ff9267cc526ada)
- Upload dataset (ad26f5671cadb00623b2c5f8338a505127b363ac)
- Upload dataset (25b4b7298fe5554c7f175fbee26b64d119af4140)
- Upload dataset (acde1fea09982e8511bc549ed9afd5df325b7124)
- Upload dataset (c1e5ed906bd4b5863c2f4d1daecf2b889a8c7832)
- Upload dataset (496327a0685225eae79f8bfe2b8318b58fa02829)
- Upload dataset (c8931dc7d841cb2f438b72d8ebdbac2126b25021)
- Upload dataset (8d69f46d1ec8fb5b9d430ab99023ff47499bbe7c)
- Upload dataset (06b34379e9cacc640227438b4378867ede55193e)
- Upload dataset (6f1a785201fcee20fc645c5493a171217e91e20a)
- Upload dataset (3b0f739ea80a6d8fee358d2b187c9adca5b2be9c)
- Upload dataset (2f20be245d41fe6f7700b1250db3492555369cd4)
- Upload dataset (860c2876596c7d00274d88bed7060598a5e731eb)
- Upload dataset (9ef9f6db4efd3ad6f4fd3620cf8ea4d772cce705)
- Upload dataset (43a2a4e4ffc636a01d998d1dc2de861770fc3c2e)
- Upload dataset (e8b93754722df238c91892943ca40646cb5dbd04)
- Upload dataset (4945dfab39ac14016e59596ac8fe778163bc8722)
- Upload dataset (730436d137d1a0af1dba1a5336d60f93489b0cbf)
- Upload dataset (881fd7ac6c931b4b2e2c1de75e92b347658d8ada)
- Upload dataset (b55b94cd4989df6b83d0da718da1ebdf90707a2d)
- Upload dataset (c39854c5cfb8937ee600e15c6631ccee48f12ead)
- Upload dataset (4ae7d6c22f2c690526de646fbfa2811944516501)
- Upload dataset (f2ce09e432e3f81172597e233cde3d0cef7ae5ae)
- Upload dataset (f48221e8c55b38a37da463e1fa1aa25f085d40f7)
- Upload dataset (169a6f2d2019313b58cac8b63206ce7549ec4da5)
- Upload dataset (8ac6d334a62864833e1663840141a24b3e6f358f)
- Upload dataset (93aad6a124ffe65e8a36ae69456305c9eaa1790a)
- Upload dataset (b191c3e4d102113fe906b11c03d71ac40f2a6410)
- Upload dataset (9772309bb5509384b899d9b81ec786b788a54659)
- Upload dataset (7f38de7ef33f8f4766d2df78ece4d9f36384a73a)
- Upload dataset (bc1b042ee45f48089ee06ca7bf6e3de02935f923)
- Upload dataset (3f95d4138d3e0fc035d5b566cd1640d58913b71a)
- Upload dataset (0dcfc436220caaac5cadd781a2739c418fdb1fcc)
- Upload dataset (b9451829136f5bdf1f2dd9110024eeb0cdd8197a)
- Upload dataset (ba611d4f407dea5b83276f17521579ff740cf725)
- Upload dataset (c9de2422c889113c0f836a7179edbf0d2066f3c2)
- Upload dataset (5dfd1c1aaf81df654f0fdde085591ac6f872de73)
- Upload dataset (cee621bfc5897918c78b38dd14b3a8f49bb1202f)
- Upload dataset (43945ac697b0c8a3155de51b88ca03375ada4ecd)
- Upload dataset (d2bf7c18fb05cca7004c7abe59ff0e2b3c9df02d)
- Upload dataset (c33a1ba724a11b7d1d1e338626d1e3e6d2457ade)
- Upload dataset (51bf882ad27cbb6dd386ecc82462b8eed8bf293b)
- Upload dataset (26b9328af982e694e21056f861707852f9438101)
- Upload dataset (1f31c8e16f4aaf6efd080b4a9f5d6ec5b9fce559)
- Upload dataset (c5d43f2da94ae0ce01257a44278d69139cd32e52)
- Upload dataset (1ed8573c516f08527a45aa3eb33986b506626a30)
- Upload dataset (a4caaebc48fde90658f5165e8864e535feaa2b1b)
- Upload dataset (ab266dae5773584ed1a9bab51f79b63648f7d45d)
- Upload dataset (acaf53daf9e5bc88a290f72d67b15a61191540d8)
- Upload dataset (380a35c1aaf3b71c707fcd804572711a89ce5be4)
- Upload dataset (dc2b6cad434c0cadd4d8499d31a6de22f80bd9be)
- Upload dataset (0ce1c72fe77fccf3bff52b2092633ec3c7263f87)
- Upload dataset (e99e9d371c3d97ce572f7a69b62382d09d280cec)
- Upload dataset (c0be115d594e6e3a37157e847301c02e586776d2)
- Upload dataset (447d43d0904ee482447fef02bed367fe1d3db904)
- Upload dataset (e02442b9ad6c6631582633da230c60994ca8bbf3)
- Upload dataset (8434d90d62eb5ef21df88ce88c99eb60931e9e16)
- Upload dataset (d4c91054eb1edf63119f3b3dd0a470cbafd5022d)
- Upload dataset (8c19dffb2850977a545119980cef54eaae0d0cf0)
- Upload dataset (9d98c55cf1f8be2f98cf4361c085c6939fceefd1)
- Upload dataset (7fc23afbc550c37dbbe6a00d9e4595e724e799a8)
- Upload dataset (3dfd693db27c84e26fb8f9aad7ffd855162e0951)
- Upload dataset (c148f71a5ccc6e2261ef88855c40fd7149da8f93)
- Upload dataset (de1243b8642762802cc85207d0ce71e446cab665)
- Upload dataset (57df9310266e24391b9747db1f596fdfab02497a)
- Upload dataset (dde722447a7c2079956631897cc20af4b5d65103)
- Upload dataset (26d9c6ab34ef6fd9a2766580de1958c8d810d92a)
- Upload dataset (dcd499d6bd5d8f330703a8070c8eb81c1b27cd35)
- Upload dataset (f60c8f64de8154327927413209112aedd2c91fa5)
- Upload dataset (e9a6c897601e6329b15a03b16df72852ff7a118a)
- Upload dataset (09e80f10b17a9b186001244a3233a2f473a39668)
- Upload dataset (2f8eef5b4c9a5aac5936dbe8ac204a18ca6eb8cf)
- Upload dataset (637960010dee11eb3537ab4ff2db4053ed05aa22)
- Upload dataset (44796849df56aa6483100cc96929eb204f9ecbe8)
- Upload dataset (390d287dfa0fe2a76fbeaa2ce9c51da0d6b87650)
- Upload dataset (44e961d9e109f78bf1c18dca6258399af25f6333)
- Upload dataset (ad969fddf1a94d3a513dbdda2587d4e7510308c2)
- Upload dataset (b568cdfb80e16b033859a3eba3c590b742f4da1e)
- Upload dataset (44553cfd5aece7e01e0e15f9028896c7f05ab9a5)
- Upload dataset (6c85ef5fb6b3108337deb83a637aa33072f751a5)
- Upload dataset (2b07c170518732af3bf5597584223c665ed99e15)
- Upload dataset (d9651681f287ec2ab4bd4dfdc6602a746fba2f70)
- Upload dataset (55dd8f50d26e06400cb8fb7759c9262f4760c995)
- Upload dataset (4b997df7f78465ec0d36e0dee3a0ea7661a919aa)
- Upload dataset (82514e44ff3cfe3bd60377227ab6393420c070bd)
- Upload dataset (79c28cd4013e3687411714b85265459549016708)
- Upload dataset (8488640dcca28786d9c8a1e6e45c7bade7c8bfdb)
- Upload dataset (9ba1744964e5f0d394ca48335de9ce7b4a195f7b)
- Upload dataset (274946d3819094c71160795865456895600e83e8)
- Upload dataset (ed757287a3bfef500637b7f6651012f917bf0898)
- Upload dataset (46fe1c3251348e3e9078d4ad6a4ccb85e1aed757)
- Upload dataset (c3072aa8c19fdf95659b7ddb7343548b1dd646c5)
- Upload dataset (10bbd2d74d1a4cd4166dcb566d302c763274b5f9)
- Upload dataset (9e950cf932927ddc22963b0a714c9b275a55d252)
- Upload dataset (849d2c7d07aa4deda0ce3a7084a4f9715bb

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. P3.py +0 -202
  2. README.md +0 -0
  3. _tfrecord_example_pb2.py +0 -3
  4. adversarial_qa_dbert_answer_the_following_q/train-00000-of-00001.parquet +3 -0
  5. adversarial_qa_dbert_answer_the_following_q/validation-00000-of-00001.parquet +3 -0
  6. adversarial_qa_dbert_based_on/train-00000-of-00001.parquet +3 -0
  7. adversarial_qa_dbert_based_on/validation-00000-of-00001.parquet +3 -0
  8. adversarial_qa_dbert_generate_question/test-00000-of-00001.parquet +3 -0
  9. adversarial_qa_dbert_generate_question/train-00000-of-00001.parquet +3 -0
  10. adversarial_qa_dbert_generate_question/validation-00000-of-00001.parquet +3 -0
  11. adversarial_qa_dbert_question_context_answer/train-00000-of-00001.parquet +3 -0
  12. adversarial_qa_dbert_question_context_answer/validation-00000-of-00001.parquet +3 -0
  13. adversarial_qa_dbert_tell_what_it_is/train-00000-of-00001.parquet +3 -0
  14. adversarial_qa_dbert_tell_what_it_is/validation-00000-of-00001.parquet +3 -0
  15. adversarial_qa_dbidaf_answer_the_following_q/train-00000-of-00001.parquet +3 -0
  16. adversarial_qa_dbidaf_answer_the_following_q/validation-00000-of-00001.parquet +3 -0
  17. adversarial_qa_dbidaf_based_on/train-00000-of-00001.parquet +3 -0
  18. adversarial_qa_dbidaf_based_on/validation-00000-of-00001.parquet +3 -0
  19. adversarial_qa_dbidaf_generate_question/test-00000-of-00001.parquet +3 -0
  20. adversarial_qa_dbidaf_generate_question/train-00000-of-00001.parquet +3 -0
  21. adversarial_qa_dbidaf_generate_question/validation-00000-of-00001.parquet +3 -0
  22. adversarial_qa_dbidaf_question_context_answer/train-00000-of-00001.parquet +3 -0
  23. adversarial_qa_dbidaf_question_context_answer/validation-00000-of-00001.parquet +3 -0
  24. adversarial_qa_dbidaf_tell_what_it_is/train-00000-of-00001.parquet +3 -0
  25. adversarial_qa_dbidaf_tell_what_it_is/validation-00000-of-00001.parquet +3 -0
  26. adversarial_qa_droberta_answer_the_following_q/train-00000-of-00001.parquet +3 -0
  27. adversarial_qa_droberta_answer_the_following_q/validation-00000-of-00001.parquet +3 -0
  28. adversarial_qa_droberta_based_on/train-00000-of-00001.parquet +3 -0
  29. adversarial_qa_droberta_based_on/validation-00000-of-00001.parquet +3 -0
  30. adversarial_qa_droberta_generate_question/test-00000-of-00001.parquet +3 -0
  31. adversarial_qa_droberta_generate_question/train-00000-of-00001.parquet +3 -0
  32. adversarial_qa_droberta_generate_question/validation-00000-of-00001.parquet +3 -0
  33. adversarial_qa_droberta_question_context_answer/train-00000-of-00001.parquet +3 -0
  34. adversarial_qa_droberta_question_context_answer/validation-00000-of-00001.parquet +3 -0
  35. adversarial_qa_droberta_tell_what_it_is/train-00000-of-00001.parquet +3 -0
  36. adversarial_qa_droberta_tell_what_it_is/validation-00000-of-00001.parquet +3 -0
  37. ag_news_classify/test-00000-of-00001.parquet +3 -0
  38. ag_news_classify/train-00000-of-00001.parquet +3 -0
  39. ag_news_classify_question_first/test-00000-of-00001.parquet +3 -0
  40. ag_news_classify_question_first/train-00000-of-00001.parquet +3 -0
  41. ag_news_classify_with_choices/test-00000-of-00001.parquet +3 -0
  42. ag_news_classify_with_choices/train-00000-of-00001.parquet +3 -0
  43. ag_news_classify_with_choices_question_first/test-00000-of-00001.parquet +3 -0
  44. ag_news_classify_with_choices_question_first/train-00000-of-00001.parquet +3 -0
  45. ag_news_recommend/test-00000-of-00001.parquet +3 -0
  46. ag_news_recommend/train-00000-of-00001.parquet +3 -0
  47. ag_news_which_section/test-00000-of-00001.parquet +3 -0
  48. ag_news_which_section/train-00000-of-00001.parquet +3 -0
  49. ag_news_which_section_choices/test-00000-of-00001.parquet +3 -0
  50. ag_news_which_section_choices/train-00000-of-00001.parquet +3 -0
P3.py DELETED
@@ -1,202 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 BigScience Contributors.
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
- """P3 (Public Pool of Prompts)"""
16
-
17
- import os
18
-
19
- import google.protobuf as _protobuf # From: protobuf
20
-
21
- import datasets
22
-
23
- from ._tfrecord_example_pb2 import SequenceExample
24
- from .io_utils import iterate_tfrecord_file, parse_tfrecord_sequence_example
25
- from .tasks_splits_and_features import _TASK_SPLITS_AND_FEATURES_DICT
26
-
27
-
28
- _CITATION = """@misc{sanh2021multitask,
29
- title={Multitask Prompted Training Enables Zero-Shot Task Generalization},
30
- author={Victor Sanh and Albert Webson and Colin Raffel and Stephen H. Bach and Lintang Sutawika and Zaid Alyafeai and Antoine Chaffin and Arnaud Stiegler and Teven Le Scao and Arun Raja and Manan Dey and M Saiful Bari and Canwen Xu and Urmish Thakker and Shanya Sharma Sharma and Eliza Szczechla and Taewoon Kim and Gunjan Chhablani and Nihal Nayak and Debajyoti Datta and Jonathan Chang and Mike Tian-Jian Jiang and Han Wang and Matteo Manica and Sheng Shen and Zheng Xin Yong and Harshit Pandey and Rachel Bawden and Thomas Wang and Trishala Neeraj and Jos Rozen and Abheesht Sharma and Andrea Santilli and Thibault Fevry and Jason Alan Fries and Ryan Teehan and Stella Biderman and Leo Gao and Tali Bers and Thomas Wolf and Alexander M. Rush},
31
- year={2021},
32
- eprint={2110.08207},
33
- archivePrefix={arXiv},
34
- primaryClass={cs.LG}
35
- }"""
36
-
37
- _DESCRIPTION = """\
38
- P3 (Public Pool of Prompts) is a collection of prompted English datasets covering a diverse set of NLP tasks. A prompt is the combination of an input template and a target template. The templates are functions mapping a data example into natural language for the input and target sequences. For example, in the case of an NLI dataset, the data example would include fields for *Premise, Hypothesis, Label*. An input template would be *If {Premise} is true, is it also true that {Hypothesis}?*, whereas a target template can be defined with the label choices *Choices[label]*. Here *Choices* is prompt-specific metadata that consists of the options *yes, maybe, no* corresponding to *label* being entailment (0), neutral (1) or contradiction (2).
39
-
40
- Prompts are collected using [Promptsource](https://github.com/bigscience-workshop/promptsource), an interface to interactively write prompts on datasets, and collect prompt-specific metadata such as evaluation metrics. As of October 13th, there are 2'000 prompts collected for 270+ data(sub)sets. The collection of prompts of P3 is publicly available on [Promptsource](https://github.com/bigscience-workshop/promptsource).
41
-
42
- To train [T0*](https://huggingface.co/bigscience/T0pp), we used a subset of the prompts available in Promptsource (see details [here](https://huggingface.co/bigscience/T0pp#training-data)). However, some of the prompts use `random.choice`, a method that selects uniformly at random an option in a list of valid possibilities. For reproducibility purposes, we release the collection of prompted examples used to train T0*. **The data available here are the materialized version of the prompted datasets used in [Multitask Prompted Training Enables Zero-Shot Task Generalization](https://arxiv.org/abs/2110.08207) which represent only a subset of the datasets for which there is at least one prompt in Promptsource.**
43
- """
44
-
45
- _LICENSE = "Apache License 2.0"
46
-
47
- _HOMEPAGE = "https://github.com/bigscience-workshop/promptsource"
48
-
49
- _DATA_PATH = "data"
50
-
51
- logger = datasets.logging.get_logger(__name__)
52
-
53
- _URLs = {
54
- task_name: {
55
- split_name: [
56
- os.path.join(
57
- _DATA_PATH, task_name, split_name + ".tfrecord-00000-of-00001"
58
- ), # TODO -> handle multiple shards
59
- ]
60
- for split_name in splits_and_features_dict["splits"]
61
- }
62
- for task_name, splits_and_features_dict in _TASK_SPLITS_AND_FEATURES_DICT.items()
63
- }
64
-
65
-
66
- class P3Config(datasets.BuilderConfig):
67
- """BuilderConfig for P3."""
68
-
69
- def __init__(self, splits, features_dict, score_eval, **kwargs):
70
- """BuilderConfig for P3.
71
-
72
- Args:
73
- splits: `List[str]`, the lists of splits which are available for this task
74
- features_dict: `dict`, the dict of features for this task
75
- score_eval: `bool`, whether this is task formulated as a rank classification problem
76
- **kwargs: keyword arguments forwarded to super.
77
- """
78
- # Version history:
79
- # 0.1 initial commit
80
- super(P3Config, self).__init__(version=datasets.Version("0.1.0"), **kwargs)
81
- self.splits = splits
82
- self.features_dict = features_dict
83
- self.score_eval = score_eval
84
-
85
-
86
- class P3(datasets.GeneratorBasedBuilder):
87
- """Subset of P3 used in `Multitask Prompted Training Enables Zero-Shot Task Generalization`"""
88
-
89
- BUILDER_CONFIGS = [
90
- P3Config(
91
- name=task_name,
92
- splits=splits_and_features_dict["splits"],
93
- features_dict=splits_and_features_dict["features_dict"],
94
- score_eval=task_name.endswith("score_eval"),
95
- )
96
- for task_name, splits_and_features_dict in _TASK_SPLITS_AND_FEATURES_DICT.items()
97
- ]
98
-
99
- def _info(self):
100
- # All features available are: 'inputs', 'inputs_pretokenized', 'targets',
101
- # 'targets_pretokenized', 'idx', 'is_correct', 'weight', and 'answer_choices'
102
- _FEAT_MAPPING = {
103
- "answer_choices": datasets.Sequence(datasets.Value("string")),
104
- "inputs": datasets.Sequence(datasets.Value("int32")),
105
- "inputs_pretokenized": datasets.Value("string"),
106
- "targets": datasets.Sequence(datasets.Value("int32")),
107
- "targets_pretokenized": datasets.Value("string"),
108
- "idx": datasets.Sequence(datasets.Value("int32")),
109
- "weight": datasets.Value("float32"),
110
- "is_correct": datasets.Value("bool"),
111
- }
112
-
113
- features = {feat_name: _FEAT_MAPPING[feat_name] for feat_name in self.config.features_dict.keys()}
114
- return datasets.DatasetInfo(
115
- description=_DESCRIPTION,
116
- features=datasets.Features(features),
117
- supervised_keys=None,
118
- homepage=_HOMEPAGE,
119
- citation=_CITATION,
120
- license=_LICENSE,
121
- )
122
-
123
- def _split_generators(self, dl_manager):
124
- split_generators = []
125
- data_dir = dl_manager.download(_URLs[self.config.name])
126
- if "train" in self.config.splits:
127
- split_name = "train"
128
- split_generators.append(
129
- datasets.SplitGenerator(
130
- name=datasets.Split.TRAIN,
131
- gen_kwargs={
132
- "tfrecord_files": data_dir[split_name],
133
- },
134
- )
135
- )
136
- if "validation" in self.config.splits:
137
- split_name = "validation"
138
- split_generators.append(
139
- datasets.SplitGenerator(
140
- name=datasets.Split.VALIDATION,
141
- gen_kwargs={
142
- "tfrecord_files": data_dir[split_name],
143
- },
144
- )
145
- )
146
- if "test" in self.config.splits:
147
- split_name = "test"
148
- split_generators.append(
149
- datasets.SplitGenerator(
150
- name=datasets.Split.TEST,
151
- gen_kwargs={
152
- "tfrecord_files": data_dir[split_name],
153
- },
154
- )
155
- )
156
- # Handle splits that are not train, validation or test
157
- special_splits = set(self.config.splits) - set(["train", "validation", "test"])
158
- for special_split_name in special_splits:
159
- split_generators.append(
160
- datasets.SplitGenerator(
161
- name=datasets.Split(special_split_name),
162
- gen_kwargs={
163
- "tfrecord_files": data_dir[special_split_name],
164
- },
165
- )
166
- )
167
- return split_generators
168
-
169
- def _generate_examples(self, tfrecord_files):
170
- """This function returns the examples in the raw (text) form."""
171
- _POST_PROC_FUNCTIONS = {
172
- "answer_choices": lambda x: [choice.decode("utf-8") for choice in x],
173
- "inputs": lambda x: x.tolist(),
174
- "inputs_pretokenized": lambda x: x[0].decode("utf-8"),
175
- "targets": lambda x: x.tolist(),
176
- "targets_pretokenized": lambda x: x[0].decode("utf-8"),
177
- "idx": lambda x: x.tolist(),
178
- "weight": lambda x: float(x),
179
- "is_correct": lambda x: x,
180
- }
181
-
182
- def _prepare_col_spec(shape, dtype):
183
- if dtype in ("int32", "bool"):
184
- # int32 and bool are stored as int64 in the tf.train.Example protobuf.
185
- dtype = "int64"
186
- elif dtype == "string":
187
- dtype = "str"
188
- if shape and shape[0] is None:
189
- shape = (-1, *shape[1:])
190
- return (shape, dtype)
191
-
192
- spec = {k: _prepare_col_spec(**v) for k, v in self.config.features_dict.items()}
193
- idx = 0
194
- for tfrecord_file in tfrecord_files:
195
- with open(tfrecord_file, "rb") as f:
196
- for example_bytes in iterate_tfrecord_file(f):
197
- example = SequenceExample()
198
- example.ParseFromString(example_bytes)
199
- example = parse_tfrecord_sequence_example(example, spec)
200
- example = {k: _POST_PROC_FUNCTIONS[k](v) for k, v in example.items()}
201
- yield idx, example
202
- idx += 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
The diff for this file is too large to render. See raw diff
 
_tfrecord_example_pb2.py DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:50e227d1c6e389901c2ec71b36b8d73b0b7711b14c42962a837f01c197056f2c
3
- size 21378
 
 
 
 
adversarial_qa_dbert_answer_the_following_q/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6d997d8fd12081e20b4eb2ccc46b81407eeaca524b1817eca4b77714e1dcd3f
3
+ size 5719540
adversarial_qa_dbert_answer_the_following_q/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa53146cdea45e86e7f4a0f0c44a62b6a9c3adeb0bf02c47397b0f66dbe525c0
3
+ size 569101
adversarial_qa_dbert_based_on/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c04d974a5121921c59942a21a8bd83aa30c4879fb52fa21ef72fadb6eb1c6379
3
+ size 5642584
adversarial_qa_dbert_based_on/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:606d3a6cf005b546426e016db7c4ad1c50d3e2a13d368959fb755be466a0aaef
3
+ size 564160
adversarial_qa_dbert_generate_question/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:454079f0e5dbe88d9bfee8cd917b0d3edd9ff973e905da925d26d0b5dceadbea
3
+ size 539687
adversarial_qa_dbert_generate_question/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc0081ce07137b78183b928db327fc5512e6920ad64c4bad9b3551f3b82e5084
3
+ size 4843021
adversarial_qa_dbert_generate_question/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6932eee328f8c45df4dd49c7abb99ead318a5e062a384f2e046b73c971bb6cb8
3
+ size 499896
adversarial_qa_dbert_question_context_answer/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ef573061ed2e59242a6dbcc2c28d1380182c2fba058a16c7ba9854eec434440
3
+ size 5617573
adversarial_qa_dbert_question_context_answer/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dad11d088cc9dc8e74d0304beebbce110145566c18d42faf4f68b476238c4f47
3
+ size 562790
adversarial_qa_dbert_tell_what_it_is/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56bde5478a9e49b0354a9bc3881665f4d18ef0f77e40b3694224deff5eabdd86
3
+ size 5701291
adversarial_qa_dbert_tell_what_it_is/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78e1c91a7e1967356274a830879191f0fa4970f538f54d15c609e7f37948f786
3
+ size 575429
adversarial_qa_dbidaf_answer_the_following_q/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57c429ad8ac739bfce676e966399adc3639ea6788f4359d0b69af2d6d17ec443
3
+ size 5756215
adversarial_qa_dbidaf_answer_the_following_q/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3b65ef122542f013c480254a9777d9d93d443f6bb13feb26ff6a6740616c987
3
+ size 565455
adversarial_qa_dbidaf_based_on/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9c174c2499fc4dfc7ac388fd009f2ff8e0fcc57bfbdfe41ce6e023923e07c07
3
+ size 5668913
adversarial_qa_dbidaf_based_on/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11d51e8b7de2f079cdc2f437f127e298bcf1e0f76eba851fcb5c706b66d5bc84
3
+ size 578678
adversarial_qa_dbidaf_generate_question/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:487ecba5e2a21b33fd6ac655a264d68a4590f0e047210cdc94ea1e0a14ae1dad
3
+ size 555638
adversarial_qa_dbidaf_generate_question/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2df2aa07d46b7dabd1613f7c60d5d029eb2d8cec7b490187dfab77a9596e416e
3
+ size 4933733
adversarial_qa_dbidaf_generate_question/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81bcbc8400d9d0ef57b709d1228eac6c12d2d1efeec0db43c191caa60ed83555
3
+ size 494486
adversarial_qa_dbidaf_question_context_answer/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c522c9b11648421658d604b9be5e97bbf997c2a3289116ffa25f2b3e2a132e0
3
+ size 5721765
adversarial_qa_dbidaf_question_context_answer/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00dbe0cd03cb30c453030124525b61c1cf056f9f60be8bdece4ea3a2e67b7d36
3
+ size 571041
adversarial_qa_dbidaf_tell_what_it_is/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:529cfcd051c89aef2dbc5d8a4d434da86775de3468871b785decfb63f3166584
3
+ size 5687779
adversarial_qa_dbidaf_tell_what_it_is/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c557ce7943b246c78c0c327bdfe0ba8c67c9aeb15d09e3f13a3bfa53a02c931f
3
+ size 563124
adversarial_qa_droberta_answer_the_following_q/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed3280ea2015a12f2564ca748447ff2ba82e384c7fb6fbdd4aa1a4ba0664dd58
3
+ size 5663284
adversarial_qa_droberta_answer_the_following_q/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39bc5677aa6f311db5affb7d2e57460116d27e9a8c5b5514fc180ae055dd5234
3
+ size 560155
adversarial_qa_droberta_based_on/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be1a98fc3abcc1a894b7bce1eb58499e7b13f5ef69a93d2c75cb2ec827e62326
3
+ size 5654644
adversarial_qa_droberta_based_on/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33e2bbd352947919dd9a23526558d9c4a210f2bf007a04c50ab189617e832d1b
3
+ size 548257
adversarial_qa_droberta_generate_question/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:996e0ab8ad8f80987b96c96963bf1092b43dc784828394a925908b32d5b4790d
3
+ size 527299
adversarial_qa_droberta_generate_question/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3db2e27c993b3089f7fd3f7374f6a0cea885d850d97b5ea7bf13358080b6cd54
3
+ size 4901167
adversarial_qa_droberta_generate_question/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f99ec339dbdf3d13d98aa317137d3c022fd31f1051018e8f0f3b92d2803360b
3
+ size 500167
adversarial_qa_droberta_question_context_answer/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:600de6fd91e7f6673f3dd04fcd9147c89f516ebf5209651676d3f5b9db0cb7e4
3
+ size 5613934
adversarial_qa_droberta_question_context_answer/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8575550bc72b8cb76d11ace0a5ee28b9e389442db06e7cef046bac966f82fa08
3
+ size 579852
adversarial_qa_droberta_tell_what_it_is/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:079072ddfdbb8b7e781d7581b2b5eaf8193ce2240633a947553332f310cd0e1c
3
+ size 5597195
adversarial_qa_droberta_tell_what_it_is/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ee92a0e7657a6bf15f9906b93f8a6767fac30cb0450d039b717b2d453f23fa9
3
+ size 554962
ag_news_classify/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee1413c2e56bf08299f687224ea944a606affc0c99a67406b77453abae3bf2c3
3
+ size 2330963
ag_news_classify/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fef38cac3b6f74362f7ba1f167bb7fb9c107c7a952685cea9d0bf6674c9dd07d
3
+ size 35173577
ag_news_classify_question_first/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f7f14830f6422fe7d1420538fa001840b33a6da438e462f7dd3ab81330d04d3
3
+ size 2324682
ag_news_classify_question_first/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3aa084fa81d119ad3c4a817c2f7282e2f7341a28633df0bec30f40aa202e816
3
+ size 34986982
ag_news_classify_with_choices/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a3b5376747f9a8059501b693a0dca38e3be43872b9aecf97d08eb7feac5ebee
3
+ size 2381975
ag_news_classify_with_choices/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3dfdc45cd588066eb319c8d68517d46bcf4e0e7c02169e1df53a148ed3742379
3
+ size 35995211
ag_news_classify_with_choices_question_first/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:812f48e4eb5f90bb3cf25a7e625c21e56e123f731b10764ae8d3c3e45ddeb584
3
+ size 2385273
ag_news_classify_with_choices_question_first/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0884bf2762018cbeacbabb1d9a3fabc0ffe1d63223b3d9087df979e59a2922ad
3
+ size 35933365
ag_news_recommend/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f98c236e40e73751ec44edfc3c070cc0b0c12f5bda2ca5af42ba6ea5d4c9e0d7
3
+ size 2388270
ag_news_recommend/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2498be681c8821acfcb9e803ed45f47bf114c764a27e0f7bb9d9ab89a2610233
3
+ size 35979846
ag_news_which_section/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed2f0b785a11044b33add7970ec5c6cf9e3d0472ad21dbc411c05449ad4c00b6
3
+ size 2356333
ag_news_which_section/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee69aa60cde7c0936938d66d0436303b7d752213c14db8ec65017a815445d606
3
+ size 35537631
ag_news_which_section_choices/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e896fe004f9c7385f016adda53ae4ba4d9c7853c603e7d13addf33eeb5b40db4
3
+ size 2426218
ag_news_which_section_choices/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b20baa2078e934fe6de954975a60add3559ecc695b91833421441a98cabecc97
3
+ size 36741707