rain1024 commited on
Commit
565cd29
1 Parent(s): 893eb0a
Files changed (1) hide show
  1. UTS_WTK_v1.py +8 -10
UTS_WTK_v1.py CHANGED
@@ -10,8 +10,8 @@ _CITATION = """\
10
 
11
  _BASE_URL = "https://huggingface.co/datasets/undertheseanlp/UTS_WTK_v1/raw/main/data/"
12
  TRAIN_FILE = "train.txt"
13
- DEV_FILE = "train.txt"
14
- TEST_FILE = "train.txt"
15
 
16
 
17
  class UTS_WTK_v1(datasets.GeneratorBasedBuilder):
@@ -37,21 +37,19 @@ class UTS_WTK_v1(datasets.GeneratorBasedBuilder):
37
  train_file = dl_manager.download(os.path.join(_BASE_URL, TRAIN_FILE))
38
  dev_file = dl_manager.download(os.path.join(_BASE_URL, DEV_FILE))
39
  test_file = dl_manager.download(os.path.join(_BASE_URL, TEST_FILE))
40
- data_files = {
41
- "train": train_file,
42
- "dev": dev_file,
43
- "test": test_file,
44
- }
45
  splits = [
46
  datasets.SplitGenerator(
47
- name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_files["train"]}
 
48
  ),
49
  datasets.SplitGenerator(
50
  name=datasets.Split.VALIDATION,
51
- gen_kwargs={"filepath": data_files["dev"]},
52
  ),
53
  datasets.SplitGenerator(
54
- name=datasets.Split.TEST, gen_kwargs={"filepath": data_files["test"]}
 
55
  ),
56
  ]
57
  return splits
 
10
 
11
  _BASE_URL = "https://huggingface.co/datasets/undertheseanlp/UTS_WTK_v1/raw/main/data/"
12
  TRAIN_FILE = "train.txt"
13
+ DEV_FILE = "dev.txt"
14
+ TEST_FILE = "test.txt"
15
 
16
 
17
  class UTS_WTK_v1(datasets.GeneratorBasedBuilder):
 
37
  train_file = dl_manager.download(os.path.join(_BASE_URL, TRAIN_FILE))
38
  dev_file = dl_manager.download(os.path.join(_BASE_URL, DEV_FILE))
39
  test_file = dl_manager.download(os.path.join(_BASE_URL, TEST_FILE))
40
+
 
 
 
 
41
  splits = [
42
  datasets.SplitGenerator(
43
+ name=datasets.Split.TRAIN,
44
+ gen_kwargs={"filepath": train_file}
45
  ),
46
  datasets.SplitGenerator(
47
  name=datasets.Split.VALIDATION,
48
+ gen_kwargs={"filepath": dev_file},
49
  ),
50
  datasets.SplitGenerator(
51
+ name=datasets.Split.TEST,
52
+ gen_kwargs={"filepath": test_file}
53
  ),
54
  ]
55
  return splits