khalidalt commited on
Commit
b167430
·
verified ·
1 Parent(s): 9cc7afb

Update xtd_11.py

Browse files
Files changed (1) hide show
  1. xtd_11.py +3 -1
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={"filepath": f"{_Base_url}{lang}.json"}
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: