KimuGenie commited on
Commit
f652a24
·
1 Parent(s): 29f90a0
Files changed (1) hide show
  1. YNAT.py +5 -5
YNAT.py CHANGED
@@ -14,8 +14,8 @@ _CITATION = """\
14
  _LICENSE = "CC-BY-SA-4.0"
15
  _DESCRIPTION = "klue YNAT dataset for boostcamp AI Tech data-centric project"
16
  _DATA_URLS = {
17
- "train": "https://huggingface.co/datasets/KimuGenie/YNAT/blob/main/train.csv",
18
- "test": "https://huggingface.co/datasets/KimuGenie/YNAT/blob/main/test.csv",
19
  }
20
 
21
  _VERSION = "0.0.0"
@@ -70,9 +70,9 @@ class YNAT(datasets.GeneratorBasedBuilder):
70
  idx = 0
71
  for row in reader:
72
  features = {
73
- "input_text": row,
74
  }
75
- # if split != "test":
76
- # features["label_text"] = row[2]
77
  yield idx, features
78
  idx += 1
 
14
  _LICENSE = "CC-BY-SA-4.0"
15
  _DESCRIPTION = "klue YNAT dataset for boostcamp AI Tech data-centric project"
16
  _DATA_URLS = {
17
+ "train": "https://huggingface.co/datasets/KimuGenie/YNAT/resolve/main/train.csv",
18
+ "test": "https://huggingface.co/datasets/KimuGenie/YNAT/resolve/main/test.csv",
19
  }
20
 
21
  _VERSION = "0.0.0"
 
70
  idx = 0
71
  for row in reader:
72
  features = {
73
+ "input_text": row[1],
74
  }
75
+ if split != "test":
76
+ features["label_text"] = row[2]
77
  yield idx, features
78
  idx += 1