Datasets:
Update folio.py
Browse files
folio.py
CHANGED
@@ -20,6 +20,12 @@ files = ["folio-train.jsonl", "folio-validation.jsonl"]
|
|
20 |
_URLs = {f:f"https://huggingface.co/datasets/metaeval/folio/resolve/main/{f}" for f in files}
|
21 |
|
22 |
class Folio(datasets.GeneratorBasedBuilder):
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
|
|
20 |
_URLs = {f:f"https://huggingface.co/datasets/metaeval/folio/resolve/main/{f}" for f in files}
|
21 |
|
22 |
class Folio(datasets.GeneratorBasedBuilder):
|
23 |
+
BUILDER_CONFIGS = [
|
24 |
+
MegaConfig(
|
25 |
+
name='.'.join(n.split('.')[:-1]),
|
26 |
+
data_dir=n
|
27 |
+
) for n in files
|
28 |
+
]
|
29 |
|
30 |
|
31 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|