zqwerty commited on
Commit
a6a5745
1 Parent(s): dd2aa74

fix bug in script

Browse files
Files changed (1) hide show
  1. CrossWOZ.py +2 -2
CrossWOZ.py CHANGED
@@ -215,8 +215,8 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
215
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
216
  downloaded_files = dl_manager.download_and_extract(_URLs)
217
  print(downloaded_files)
218
- for file in downloaded_files:
219
- print(file)
220
  print(os.path.dirname(file))
221
  print(os.listdir(os.path.dirname(file)))
222
  print(os.listdir(file))
 
215
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
216
  downloaded_files = dl_manager.download_and_extract(_URLs)
217
  print(downloaded_files)
218
+ for _, file in downloaded_files.items():
219
+ print(_, file)
220
  print(os.path.dirname(file))
221
  print(os.listdir(os.path.dirname(file)))
222
  print(os.listdir(file))