zqwerty commited on
Commit
dd2aa74
1 Parent(s): 0a1d885

fix bug in script

Browse files
Files changed (1) hide show
  1. CrossWOZ.py +6 -0
CrossWOZ.py CHANGED
@@ -214,6 +214,12 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
214
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
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
  return [
218
  datasets.SplitGenerator(
219
  name=datasets.Split.TRAIN,
 
214
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
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))
223
  return [
224
  datasets.SplitGenerator(
225
  name=datasets.Split.TRAIN,