Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
system HF staff commited on
Commit
84b19af
0 Parent(s):

Update files from the datasets library (from 1.0.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.0.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
cfq.py ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """CFQ (Compositional Freebase Questions) dataset."""
18
+
19
+ from __future__ import absolute_import, division, print_function
20
+
21
+ import json
22
+ import logging
23
+ import os
24
+ import re
25
+
26
+ import datasets
27
+
28
+
29
+ _CITATION = """
30
+ @inproceedings{Keysers2020,
31
+ title={Measuring Compositional Generalization: A Comprehensive Method on
32
+ Realistic Data},
33
+ author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and
34
+ Hylke Buisman and Daniel Furrer and Sergii Kashubin and
35
+ Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and
36
+ Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and
37
+ Olivier Bousquet},
38
+ booktitle={ICLR},
39
+ year={2020},
40
+ url={https://arxiv.org/abs/1912.09713.pdf},
41
+ }
42
+ """
43
+
44
+ _DESCRIPTION = """
45
+ The CFQ dataset (and it's splits) for measuring compositional generalization.
46
+
47
+ See https://arxiv.org/abs/1912.09713.pdf for background.
48
+
49
+ Example usage:
50
+ data = datasets.load_dataset('cfq/mcd1')
51
+ """
52
+
53
+ _DATA_URL = "https://storage.googleapis.com/cfq_dataset/cfq.tar.gz"
54
+
55
+
56
+ class CfqConfig(datasets.BuilderConfig):
57
+ """BuilderConfig for CFQ splits."""
58
+
59
+ def __init__(self, name, directory="splits", **kwargs):
60
+ """BuilderConfig for CFQ.
61
+
62
+ Args:
63
+ name: Unique name of the split.
64
+ directory: Which subdirectory to read the split from.
65
+ **kwargs: keyword arguments forwarded to super.
66
+ """
67
+ # Version history:
68
+ super(CfqConfig, self).__init__(
69
+ name=name, version=datasets.Version("1.0.1"), description=_DESCRIPTION, **kwargs
70
+ )
71
+ self.split_file = os.path.join(directory, name + ".json")
72
+
73
+
74
+ _QUESTION = "question"
75
+ _QUERY = "query"
76
+ _QUESTION_FIELD = "questionPatternModEntities"
77
+ _QUERY_FIELD = "sparqlPatternModEntities"
78
+
79
+
80
+ class Cfq(datasets.GeneratorBasedBuilder):
81
+ """CFQ task / splits."""
82
+
83
+ BUILDER_CONFIGS = [
84
+ CfqConfig(name="mcd1"),
85
+ CfqConfig(name="mcd2"),
86
+ CfqConfig(name="mcd3"),
87
+ CfqConfig(name="question_complexity_split"),
88
+ CfqConfig(name="question_pattern_split"),
89
+ CfqConfig(name="query_complexity_split"),
90
+ CfqConfig(name="query_pattern_split"),
91
+ CfqConfig(name="random_split"),
92
+ ]
93
+
94
+ def _info(self):
95
+ return datasets.DatasetInfo(
96
+ description=_DESCRIPTION,
97
+ features=datasets.Features(
98
+ {
99
+ _QUESTION: datasets.Value("string"),
100
+ _QUERY: datasets.Value("string"),
101
+ }
102
+ ),
103
+ supervised_keys=(_QUESTION, _QUERY),
104
+ homepage="https://github.com/google-research/google-research/tree/master/cfq",
105
+ citation=_CITATION,
106
+ )
107
+
108
+ def _split_generators(self, dl_manager):
109
+ """Returns SplitGenerators."""
110
+ data_dir = dl_manager.download_and_extract(_DATA_URL)
111
+ data_dir = os.path.join(data_dir, "cfq")
112
+ return [
113
+ datasets.SplitGenerator(
114
+ name=datasets.Split.TRAIN,
115
+ gen_kwargs={
116
+ "base_directory": data_dir,
117
+ "splits_file": self.config.split_file,
118
+ "split_id": "trainIdxs",
119
+ },
120
+ ),
121
+ datasets.SplitGenerator(
122
+ name=datasets.Split.TEST,
123
+ gen_kwargs={"base_directory": data_dir, "splits_file": self.config.split_file, "split_id": "testIdxs"},
124
+ ),
125
+ ]
126
+
127
+ def _scrub_json(self, content):
128
+ """Reduce JSON by filtering out only the fields of interest."""
129
+ # Loading of json data with the standard Python library is very inefficient:
130
+ # For the 4GB dataset file it requires more than 40GB of RAM and takes 3min.
131
+ # There are more efficient libraries but in order to avoid additional
132
+ # dependencies we use a simple (perhaps somewhat brittle) regexp to reduce
133
+ # the content to only what is needed. This takes 1min to execute but
134
+ # afterwards loading requires only 500MB or RAM and is done in 2s.
135
+ regex = re.compile(r'("%s":\s*"[^"]*").*?("%s":\s*"[^"]*")' % (_QUESTION_FIELD, _QUERY_FIELD), re.DOTALL)
136
+ return "[" + ",".join(["{" + m.group(1) + "," + m.group(2) + "}" for m in regex.finditer(content)]) + "]"
137
+
138
+ def _generate_examples(self, base_directory, splits_file, split_id):
139
+ """Yields examples."""
140
+ samples_path = os.path.join(base_directory, "dataset.json")
141
+ splits_path = os.path.join(base_directory, splits_file)
142
+ with open(samples_path, encoding="utf-8") as samples_file:
143
+ with open(splits_path, encoding="utf-8") as splits_file:
144
+ logging.info("Reading json from %s into memory...", samples_path)
145
+ samples = json.loads(self._scrub_json(samples_file.read()))
146
+ logging.info("%d samples loaded", len(samples))
147
+ logging.info("Loaded json data from %s.", samples_path)
148
+ splits = json.load(splits_file)
149
+ for idx in splits[split_id]:
150
+ sample = samples[idx]
151
+ yield idx, {_QUESTION: sample[_QUESTION_FIELD], _QUERY: sample[_QUERY_FIELD]}
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"mcd1": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "mcd1", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5450999, "num_examples": 11968, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 37444718, "num_examples": 95743, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 42895717, "size_in_bytes": 310494778}, "mcd2": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "mcd2", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5318515, "num_examples": 11968, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 39460569, "num_examples": 95743, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 44779084, "size_in_bytes": 312378145}, "mcd3": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "mcd3", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5248999, "num_examples": 11968, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 38352257, "num_examples": 95743, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 43601256, "size_in_bytes": 311200317}, "question_complexity_split": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "question_complexity_split", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5785448, "num_examples": 10340, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 40026566, "num_examples": 98999, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 45812014, "size_in_bytes": 313411075}, "question_pattern_split": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "question_pattern_split", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5184411, "num_examples": 11909, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 41253229, "num_examples": 95654, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 46437640, "size_in_bytes": 314036701}, "query_complexity_split": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "query_complexity_split", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5638499, "num_examples": 9512, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 40307937, "num_examples": 100654, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 45946436, "size_in_bytes": 313545497}, "query_pattern_split": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "query_pattern_split", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5273088, "num_examples": 12589, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 40846767, "num_examples": 94600, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 46119855, "size_in_bytes": 313718916}, "random_split": {"description": "\nThe CFQ dataset (and it's splits) for measuring compositional generalization.\n\nSee https://arxiv.org/abs/1912.09713.pdf for background.\n\nExample usage:\ndata = datasets.load_dataset('cfq/mcd1')\n", "citation": "\n@inproceedings{Keysers2020,\n title={Measuring Compositional Generalization: A Comprehensive Method on\n Realistic Data},\n author={Daniel Keysers and Nathanael Sch\"{a}rli and Nathan Scales and\n Hylke Buisman and Daniel Furrer and Sergii Kashubin and\n Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and\n Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and\n Olivier Bousquet},\n booktitle={ICLR},\n year={2020},\n url={https://arxiv.org/abs/1912.09713.pdf},\n}\n", "homepage": "https://github.com/google-research/google-research/tree/master/cfq", "license": "", "features": {"question": {"dtype": "string", "id": null, "_type": "Value"}, "query": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "question", "output": "query"}, "builder_name": "cfq", "config_name": "random_split", "version": {"version_str": "1.0.1", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"test": {"name": "test", "num_bytes": 5169419, "num_examples": 11967, "dataset_name": "cfq"}, "train": {"name": "train", "num_bytes": 41315130, "num_examples": 95744, "dataset_name": "cfq"}}, "download_checksums": {"https://storage.googleapis.com/cfq_dataset/cfq.tar.gz": {"num_bytes": 267599061, "checksum": "979d719271eae12611643b89151f639d94092800e7e71f2d23a754c43f3eb1ba"}}, "download_size": 267599061, "dataset_size": 46484549, "size_in_bytes": 314083610}}
dummy/copy.sh ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ curPath=$(pwd)
4
+
5
+ for dir in $(ls); do
6
+ if [ -d ${curPath}/${dir} ]; then
7
+ eval "unzip dummy_data_copy.zip"
8
+ eval "mv dummy_data/cfq/splits/data.json dummy_data/cfq/splits/${dir}.json"
9
+ eval "zip -r dummy_data.zip dummy_data"
10
+ eval "cp dummy_data.zip ${curPath}/${dir}/1.0.1/dummy_data.zip"
11
+ eval "rm dummy_data.zip"
12
+ eval "rm -r dummy_data"
13
+ fi
14
+ done
dummy/dummy_data_copy.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fd4fd37244e62f4c1f1086e1b56ab8d38c7008b071e61da59f9e39f65eeff11
3
+ size 1296
dummy/mcd1/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32bd3902b0195dea3d6da2becf2bd454a4ccc575aeff3321961d42142301a98d
3
+ size 1067
dummy/mcd2/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3eb7df1beff5cc7fa8b846fb0f285b3b7a2b7487a8ad4c55aa240a0c4c67bb87
3
+ size 1296
dummy/mcd3/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ba59657377937c72ecea9e7b86c5d21da96ff9b515ed9ee0a2af7d5e4d35605
3
+ size 1296
dummy/query_complexity_split/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:839885b4df6d7a79364e101161bc49503f241d1c228e648e09104e921ed2dc9e
3
+ size 1332
dummy/query_pattern_split/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a67541516eb3b81e0e877c461e1d5ec30bbe22904dc408f91d5a5c9252b78cd
3
+ size 1326
dummy/question_complexity_split/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04c9a33df5b586fd35299c10327b3d72f687f3d4be3ea069cfc947f4e90ed612
3
+ size 1338
dummy/question_pattern_split/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a6e0c6e18e6de093ad3f5227592c780108c6577448e9df514d804cfbf505406
3
+ size 1332
dummy/random_split/1.0.1/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adad32de75fad56dfac14bb355d46f2a639458ec1c02bb55908a34c3955195c6
3
+ size 1312