Datasets:
GEM
/

Languages:
Chinese
Multilinguality:
unknown
Size Categories:
unknown
Language Creators:
unknown
Annotations Creators:
crowd-sourced
Source Datasets:
original
License:
Sebastian Gehrmann commited on
Commit
54e4115
1 Parent(s): f52b61c
Files changed (1) hide show
  1. RiSAWOZ.py +4 -10
RiSAWOZ.py CHANGED
@@ -286,33 +286,27 @@ class RiSAWOZ(datasets.GeneratorBasedBuilder):
286
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
287
  _URL = {"train": "train.json", "test": "test.json", "dev": "dev.json"}
288
 
289
- data_dir2 = dl_manager.download_and_extract(_URL)
290
 
291
  return [
292
  datasets.SplitGenerator(
293
  name=datasets.Split.TRAIN,
294
  # These kwargs will be passed to _generate_examples
295
  gen_kwargs={
296
- # "filepath": os.path.join(data_dir, "train.json"),
297
- "filepath": data_dir2["train"],
298
  "split": "train",
299
  },
300
  ),
301
  datasets.SplitGenerator(
302
  name=datasets.Split.TEST,
303
  # These kwargs will be passed to _generate_examples
304
- gen_kwargs={"filepath": data_dir2["test"], "split": "test"},
305
- ),
306
- datasets.SplitGenerator(
307
- name="challenge",
308
- # These kwargs will be passed to _generate_examples
309
- gen_kwargs={"filepath": data_dir2["test"], "split": "challenge"},
310
  ),
311
  datasets.SplitGenerator(
312
  name=datasets.Split.VALIDATION,
313
  # These kwargs will be passed to _generate_examples
314
  gen_kwargs={
315
- "filepath": data_dir2["dev"],
316
  "split": "dev",
317
  },
318
  ),
 
286
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
287
  _URL = {"train": "train.json", "test": "test.json", "dev": "dev.json"}
288
 
289
+ data_dir = dl_manager.download_and_extract(_URL)
290
 
291
  return [
292
  datasets.SplitGenerator(
293
  name=datasets.Split.TRAIN,
294
  # These kwargs will be passed to _generate_examples
295
  gen_kwargs={
296
+ "filepath": data_dir["train"],
 
297
  "split": "train",
298
  },
299
  ),
300
  datasets.SplitGenerator(
301
  name=datasets.Split.TEST,
302
  # These kwargs will be passed to _generate_examples
303
+ gen_kwargs={"filepath": data_dir["test"], "split": "test"},
 
 
 
 
 
304
  ),
305
  datasets.SplitGenerator(
306
  name=datasets.Split.VALIDATION,
307
  # These kwargs will be passed to _generate_examples
308
  gen_kwargs={
309
+ "filepath": data_dir["dev"],
310
  "split": "dev",
311
  },
312
  ),