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

Update xtd_11.py

Browse files
Files changed (1) hide show
  1. xtd_11.py +2 -2
xtd_11.py CHANGED
@@ -48,12 +48,12 @@ class XTD_11(datasets.GeneratorBasedBuilder):
48
  def _split_generators(self, dl_manager):
49
  """Returns SplitGenerators."""
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
 
 
48
  def _split_generators(self, dl_manager):
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,
55
  # Assuming the use of URLs. For local files, adjust accordingly.
56
+ gen_kwargs={"filepaths": data_urls}
57
  )
58
 
59