Samip Dahal commited on
Commit
1048ab3
·
1 Parent(s): a908f97
Files changed (1) hide show
  1. func.py +1 -1
func.py CHANGED
@@ -90,7 +90,7 @@ class FundDefDataset(datasets.GeneratorBasedBuilder):
90
  if isinstance(my_urls, str):
91
  my_urls = {self.config.name:my_urls}
92
  data_dir = [os.path.join(lang_dir,lang) for lang,lang_dir in dl_manager.download_and_extract(my_urls).items()]
93
- splitpaths={split:os.path.join(lang_dir,f'{split}.bin') for lang_dir in data_dir for split in ['train','valid','test']}
94
 
95
  return [
96
  datasets.SplitGenerator(
 
90
  if isinstance(my_urls, str):
91
  my_urls = {self.config.name:my_urls}
92
  data_dir = [os.path.join(lang_dir,lang) for lang,lang_dir in dl_manager.download_and_extract(my_urls).items()]
93
+ splitpaths={split:[os.path.join(lang_dir,f'{split}.bin') for lang_dir in data_dir] for split in ['train','valid','test']}
94
 
95
  return [
96
  datasets.SplitGenerator(