changxin commited on
Commit
1c621cd
1 Parent(s): 99f9ab2

Update test_pq.py

Browse files
Files changed (1) hide show
  1. test_pq.py +4 -2
test_pq.py CHANGED
@@ -11,6 +11,7 @@ This is a test dataset.
11
  _URLS = {
12
  "train": "https://huggingface.co/datasets/changxin/test_pq/blob/main/another_text.txt", # absolute
13
  "dev": "some_text.txt", # relative
 
14
  }
15
 
16
 
@@ -35,8 +36,9 @@ class Test(datasets.GeneratorBasedBuilder):
35
  downloaded_files = dl_manager.download_and_extract(_URLS)
36
 
37
  return [
38
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"split_key" : "A","filepath": downloaded_files["train"]}),
39
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"split_key" : "B","filepath": downloaded_files["dev"]}),
 
40
  ]
41
 
42
  def _generate_examples(self, filepath):
 
11
  _URLS = {
12
  "train": "https://huggingface.co/datasets/changxin/test_pq/blob/main/another_text.txt", # absolute
13
  "dev": "some_text.txt", # relative
14
+ "TEST1":"chuishui.txt"
15
  }
16
 
17
 
 
36
  downloaded_files = dl_manager.download_and_extract(_URLS)
37
 
38
  return [
39
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
40
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
41
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["TEST1"]}),
42
  ]
43
 
44
  def _generate_examples(self, filepath):