Datasets:

ArXiv:
DOI:
License:
SiddiqueAkhonda commited on
Commit
1ee557e
1 Parent(s): f805278

Update msynth.py

Browse files
Files changed (1) hide show
  1. msynth.py +4 -2
msynth.py CHANGED
@@ -346,9 +346,10 @@ class msynth(datasets.GeneratorBasedBuilder):
346
  for folder in files:
347
  tmp_dir = []
348
  tmp_dir = self.get_all_file_paths(os.path.join(folder, DATA_DIR[name]))
 
349
  data_dir = data_dir + tmp_dir
350
 
351
- data_dir = self.sort_file_paths(data_dir)
352
  for path in data_dir:
353
  res_dic = {}
354
  for word in _DENSITY:
@@ -383,9 +384,10 @@ class msynth(datasets.GeneratorBasedBuilder):
383
  for folder in files:
384
  tmp_dir = []
385
  tmp_dir = self.get_all_file_paths(os.path.join(folder, DATA_DIR[name]))
 
386
  data_dir = data_dir + tmp_dir
387
 
388
- data_dir = self.sort_file_paths(data_dir)
389
 
390
  new_data_dir = [];
391
  count = 1;
 
346
  for folder in files:
347
  tmp_dir = []
348
  tmp_dir = self.get_all_file_paths(os.path.join(folder, DATA_DIR[name]))
349
+ tmp_dir = self.sort_file_paths(tmp_dir)
350
  data_dir = data_dir + tmp_dir
351
 
352
+ #data_dir = self.sort_file_paths(data_dir)
353
  for path in data_dir:
354
  res_dic = {}
355
  for word in _DENSITY:
 
384
  for folder in files:
385
  tmp_dir = []
386
  tmp_dir = self.get_all_file_paths(os.path.join(folder, DATA_DIR[name]))
387
+ tmp_dir = self.sort_file_paths(tmp_dir)
388
  data_dir = data_dir + tmp_dir
389
 
390
+ #data_dir = self.sort_file_paths(data_dir)
391
 
392
  new_data_dir = [];
393
  count = 1;