Datasets:
Commit
·
9491fcd
1
Parent(s):
43cc4f0
Upload RISCBAC.py
Browse files- RISCBAC.py +4 -4
RISCBAC.py
CHANGED
|
@@ -82,20 +82,20 @@ class RISCBAC(datasets.GeneratorBasedBuilder):
|
|
| 82 |
)
|
| 83 |
|
| 84 |
def _split_generators(self, dl_manager):
|
| 85 |
-
|
| 86 |
-
|
| 87 |
if self.config.name == "en":
|
| 88 |
return [
|
| 89 |
datasets.SplitGenerator(
|
| 90 |
name="full_en",
|
| 91 |
-
gen_kwargs={"filepath":
|
| 92 |
)
|
| 93 |
]
|
| 94 |
elif self.config.name == "fr":
|
| 95 |
return [
|
| 96 |
datasets.SplitGenerator(
|
| 97 |
name="full_fr",
|
| 98 |
-
gen_kwargs={"filepath":
|
| 99 |
),
|
| 100 |
]
|
| 101 |
else:
|
|
|
|
| 82 |
)
|
| 83 |
|
| 84 |
def _split_generators(self, dl_manager):
|
| 85 |
+
url = _URLS[self.config.name]
|
| 86 |
+
file_path = dl_manager.download_and_extract(url)
|
| 87 |
if self.config.name == "en":
|
| 88 |
return [
|
| 89 |
datasets.SplitGenerator(
|
| 90 |
name="full_en",
|
| 91 |
+
gen_kwargs={"filepath": file_path},
|
| 92 |
)
|
| 93 |
]
|
| 94 |
elif self.config.name == "fr":
|
| 95 |
return [
|
| 96 |
datasets.SplitGenerator(
|
| 97 |
name="full_fr",
|
| 98 |
+
gen_kwargs={"filepath": file_path},
|
| 99 |
),
|
| 100 |
]
|
| 101 |
else:
|