Update xtd_11.py
Browse files
xtd_11.py
CHANGED
@@ -51,20 +51,13 @@ class XTD_11(datasets.GeneratorBasedBuilder):
|
|
51 |
|
52 |
# Generate splits for each language
|
53 |
splits = []
|
54 |
-
for lang in
|
55 |
splits.append(SplitGenerator(
|
56 |
-
name=
|
57 |
# Assuming the use of URLs. For local files, adjust accordingly.
|
58 |
gen_kwargs={"filepath": f"{_Base_url}{lang}.json"}
|
59 |
))
|
60 |
|
61 |
-
# Optionally, define a combined split that includes all languages
|
62 |
-
# This could be more complex to implement, depending on how you want to combine the data
|
63 |
-
# Here's a conceptual placeholder for the combined split
|
64 |
-
splits.append(SplitGenerator(
|
65 |
-
name="combined_test",
|
66 |
-
gen_kwargs={"filepaths": [f"{_Base_url}{lang}.json" for lang in languages]}
|
67 |
-
))
|
68 |
|
69 |
return splits
|
70 |
|
|
|
51 |
|
52 |
# Generate splits for each language
|
53 |
splits = []
|
54 |
+
for lang in self.subset:
|
55 |
splits.append(SplitGenerator(
|
56 |
+
name=datasets.Split.Test,
|
57 |
# Assuming the use of URLs. For local files, adjust accordingly.
|
58 |
gen_kwargs={"filepath": f"{_Base_url}{lang}.json"}
|
59 |
))
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
return splits
|
63 |
|