cw1521 commited on
Commit
15418cf
1 Parent(s): 4d75f4b

Upload build_dataset.py

Browse files
Files changed (1) hide show
  1. build_dataset.py +2 -2
build_dataset.py CHANGED
@@ -144,7 +144,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
144
  name=datasets.Split.TRAIN,
145
  # These kwargs will be passed to _generate_examples
146
  gen_kwargs={
147
- "filepaths": file_list["train"],
148
  "local_datafiles": data_dir["train"],
149
  "split": "train",
150
  },
@@ -161,7 +161,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
161
  name=datasets.Split.TEST,
162
  # These kwargs will be passed to _generate_examples
163
  gen_kwargs={
164
- "filepaths": file_list["train"],
165
  "local_datafiles": data_dir["train"],
166
  "split": "test"
167
  },
 
144
  name=datasets.Split.TRAIN,
145
  # These kwargs will be passed to _generate_examples
146
  gen_kwargs={
147
+ "filenames": file_list["train"],
148
  "local_datafiles": data_dir["train"],
149
  "split": "train",
150
  },
 
161
  name=datasets.Split.TEST,
162
  # These kwargs will be passed to _generate_examples
163
  gen_kwargs={
164
+ "filenames": file_list["train"],
165
  "local_datafiles": data_dir["train"],
166
  "split": "test"
167
  },