Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
code
Size:
100K - 1M
ArXiv:
License:
move function split_generator to top
Browse files- xlcost-text-to-code.py +9 -9
xlcost-text-to-code.py
CHANGED
@@ -46,15 +46,6 @@ def new_url(name):
|
|
46 |
"valid": f"data/{name}/{_URLS['valid']}"}
|
47 |
return urls
|
48 |
|
49 |
-
class XlcostConfig(datasets.BuilderConfig):
|
50 |
-
"""BuilderConfig for SuperGLUE."""
|
51 |
-
|
52 |
-
def __init__(self, name, description, features, **kwargs):
|
53 |
-
super(XlcostConfig, self).__init__(version=datasets.Version("2.1.0", ""), **kwargs)
|
54 |
-
self.name = name
|
55 |
-
self.description = description
|
56 |
-
self.features = features
|
57 |
-
|
58 |
def split_generator(dl_manager, name):
|
59 |
downloaded_files = new_url(name)
|
60 |
downloaded_files = dl_manager.download(new_url(name))
|
@@ -63,6 +54,15 @@ def split_generator(dl_manager, name):
|
|
63 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
|
64 |
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["valid"]}),
|
65 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
class Xlcost(datasets.GeneratorBasedBuilder):
|
68 |
"""The SuperGLUE benchmark."""
|
|
|
46 |
"valid": f"data/{name}/{_URLS['valid']}"}
|
47 |
return urls
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
def split_generator(dl_manager, name):
|
50 |
downloaded_files = new_url(name)
|
51 |
downloaded_files = dl_manager.download(new_url(name))
|
|
|
54 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
|
55 |
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["valid"]}),
|
56 |
]
|
57 |
+
|
58 |
+
class XlcostConfig(datasets.BuilderConfig):
|
59 |
+
"""BuilderConfig for SuperGLUE."""
|
60 |
+
|
61 |
+
def __init__(self, name, description, features, **kwargs):
|
62 |
+
super(XlcostConfig, self).__init__(version=datasets.Version("2.1.0", ""), **kwargs)
|
63 |
+
self.name = name
|
64 |
+
self.description = description
|
65 |
+
self.features = features
|
66 |
|
67 |
class Xlcost(datasets.GeneratorBasedBuilder):
|
68 |
"""The SuperGLUE benchmark."""
|