Update xtd_11.py
Browse files
xtd_11.py
CHANGED
@@ -55,7 +55,7 @@ class XTD_11(datasets.GeneratorBasedBuilder):
|
|
55 |
splits.append(SplitGenerator(
|
56 |
name=datasets.Split.TEST,
|
57 |
# Assuming the use of URLs. For local files, adjust accordingly.
|
58 |
-
gen_kwargs={"
|
59 |
))
|
60 |
|
61 |
|
@@ -67,6 +67,8 @@ class XTD_11(datasets.GeneratorBasedBuilder):
|
|
67 |
# Adjust the logic based on how you want to load and yield data from your JSON files
|
68 |
|
69 |
id_ = 0
|
|
|
|
|
70 |
for filepath in filepaths:
|
71 |
# Load data from a single file
|
72 |
with open(filepath, encoding="utf-8") as f:
|
|
|
55 |
splits.append(SplitGenerator(
|
56 |
name=datasets.Split.TEST,
|
57 |
# Assuming the use of URLs. For local files, adjust accordingly.
|
58 |
+
gen_kwargs={"filepaths": f"{_Base_url}{lang}.json"}
|
59 |
))
|
60 |
|
61 |
|
|
|
67 |
# Adjust the logic based on how you want to load and yield data from your JSON files
|
68 |
|
69 |
id_ = 0
|
70 |
+
print(filepaths)
|
71 |
+
print(filepath)
|
72 |
for filepath in filepaths:
|
73 |
# Load data from a single file
|
74 |
with open(filepath, encoding="utf-8") as f:
|