Update xtd_11.py
Browse files
xtd_11.py
CHANGED
@@ -49,6 +49,8 @@ class XTD_11(datasets.GeneratorBasedBuilder):
|
|
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,
|
@@ -62,7 +64,7 @@ class XTD_11(datasets.GeneratorBasedBuilder):
|
|
62 |
"""Yields examples."""
|
63 |
# This method needs to handle both single and multiple filepaths
|
64 |
# Adjust the logic based on how you want to load and yield data from your JSON files
|
65 |
-
|
66 |
id_ = 0
|
67 |
for filepath in filepaths:
|
68 |
# Load data from a single file
|
|
|
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 |
+
print(data_urls)
|
53 |
+
|
54 |
# Generate splits for each language
|
55 |
return datasets.SplitGenerator(
|
56 |
name=datasets.Split.TEST,
|
|
|
64 |
"""Yields examples."""
|
65 |
# This method needs to handle both single and multiple filepaths
|
66 |
# Adjust the logic based on how you want to load and yield data from your JSON files
|
67 |
+
print("@@@@@@@@@@@@@@@@@@@@@@@@@@@")
|
68 |
id_ = 0
|
69 |
for filepath in filepaths:
|
70 |
# Load data from a single file
|