Datasets:
Fix dataset download url
#4
by
sgallon-rin
- opened
- crosssum.py +3 -1
crosssum.py
CHANGED
@@ -116,7 +116,9 @@ class Crosssum(datasets.GeneratorBasedBuilder):
|
|
116 |
def _split_generators(self, dl_manager):
|
117 |
"""Returns SplitGenerators."""
|
118 |
lang = str(self.config.name)
|
119 |
-
|
|
|
|
|
120 |
|
121 |
data_dir = dl_manager.download_and_extract(url)
|
122 |
return [
|
|
|
116 |
def _split_generators(self, dl_manager):
|
117 |
"""Returns SplitGenerators."""
|
118 |
lang = str(self.config.name)
|
119 |
+
src_lang, tgt_lang = lang.split("-")
|
120 |
+
# url = _URL.format(lang, self.VERSION.version_str[:-2])
|
121 |
+
url = _URL.format(src_lang, tgt_lang)
|
122 |
|
123 |
data_dir = dl_manager.download_and_extract(url)
|
124 |
return [
|