Update xtd_11.py
Browse files
xtd_11.py
CHANGED
@@ -48,12 +48,12 @@ class XTD_11(datasets.GeneratorBasedBuilder):
|
|
48 |
def _split_generators(self, dl_manager):
|
49 |
"""Returns SplitGenerators."""
|
50 |
# Define your base URL or local path where the files are located
|
51 |
-
|
52 |
# Generate splits for each language
|
53 |
return datasets.SplitGenerator(
|
54 |
name=datasets.Split.TEST,
|
55 |
# Assuming the use of URLs. For local files, adjust accordingly.
|
56 |
-
gen_kwargs={"filepaths":
|
57 |
)
|
58 |
|
59 |
|
|
|
48 |
def _split_generators(self, dl_manager):
|
49 |
"""Returns SplitGenerators."""
|
50 |
# Define your base URL or local path where the files are located
|
51 |
+
data_urls = [f"{_Base_url}{lang}.json" for lang in self.config.subset]
|
52 |
# Generate splits for each language
|
53 |
return datasets.SplitGenerator(
|
54 |
name=datasets.Split.TEST,
|
55 |
# Assuming the use of URLs. For local files, adjust accordingly.
|
56 |
+
gen_kwargs={"filepaths": data_urls}
|
57 |
)
|
58 |
|
59 |
|