fix: url
Browse files
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/
|
| 18 |
-
"test": "https://huggingface.co/datasets/KimuGenie/YNAT/
|
| 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 |
-
|
| 76 |
-
|
| 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
|