khalidalt commited on
Commit
84dd359
1 Parent(s): b48afa7

Update xtd_11.py

Browse files
Files changed (1) hide show
  1. xtd_11.py +1 -3
xtd_11.py CHANGED
@@ -50,15 +50,13 @@ class XTD_11(datasets.GeneratorBasedBuilder):
50
  # Define your base URL or local path where the files are located
51
 
52
  # Generate splits for each language
53
- splits = []
54
- splits.appendSplitGenerator(
55
  name=datasets.Split.TEST,
56
  # Assuming the use of URLs. For local files, adjust accordingly.
57
  gen_kwargs={"filepaths": [f"{_Base_url}{lang}.json" for lang in self.config.subset]}
58
  )
59
 
60
 
61
- return splits
62
 
63
  def _generate_examples(self, filepaths=None):
64
  """Yields examples."""
 
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": [f"{_Base_url}{lang}.json" for lang in self.config.subset]}
57
  )
58
 
59
 
 
60
 
61
  def _generate_examples(self, filepaths=None):
62
  """Yields examples."""