Update ko-lima.py
Browse files- ko-lima.py +3 -15
ko-lima.py
CHANGED
|
@@ -30,10 +30,6 @@ A high-quality korean dataset for efficient instruction tuning.
|
|
| 30 |
"""
|
| 31 |
_HOMEPAGE = ""
|
| 32 |
_LICENSE = ""
|
| 33 |
-
_URLS = {
|
| 34 |
-
"plain": "koLIMA-plain.zip", #
|
| 35 |
-
"vicuna": "koLIMA-vicuna.zip", #
|
| 36 |
-
}
|
| 37 |
|
| 38 |
|
| 39 |
class KoLima(datasets.GeneratorBasedBuilder):
|
|
@@ -77,28 +73,20 @@ class KoLima(datasets.GeneratorBasedBuilder):
|
|
| 77 |
)
|
| 78 |
|
| 79 |
def _split_generators(self, dl_manager):
|
| 80 |
-
urls = _URLS[self.config.name]
|
| 81 |
-
data_dir = dl_manager.download_and_extract(urls)
|
| 82 |
return [
|
| 83 |
datasets.SplitGenerator(
|
| 84 |
name=datasets.Split.TRAIN,
|
|
|
|
| 85 |
gen_kwargs={
|
| 86 |
-
"filepath": os.path.join(
|
| 87 |
"split": "train",
|
| 88 |
},
|
| 89 |
),
|
| 90 |
-
# datasets.SplitGenerator(
|
| 91 |
-
# name=datasets.Split.VALIDATION,
|
| 92 |
-
# gen_kwargs={
|
| 93 |
-
# "filepath": os.path.join(data_dir, "dev.jsonl"),
|
| 94 |
-
# "split": "dev",
|
| 95 |
-
# },
|
| 96 |
-
# ),
|
| 97 |
datasets.SplitGenerator(
|
| 98 |
name=datasets.Split.TEST,
|
| 99 |
# These kwargs will be passed to _generate_examples
|
| 100 |
gen_kwargs={
|
| 101 |
-
"filepath": os.path.join(
|
| 102 |
"split": "test"
|
| 103 |
},
|
| 104 |
),
|
|
|
|
| 30 |
"""
|
| 31 |
_HOMEPAGE = ""
|
| 32 |
_LICENSE = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
class KoLima(datasets.GeneratorBasedBuilder):
|
|
|
|
| 73 |
)
|
| 74 |
|
| 75 |
def _split_generators(self, dl_manager):
|
|
|
|
|
|
|
| 76 |
return [
|
| 77 |
datasets.SplitGenerator(
|
| 78 |
name=datasets.Split.TRAIN,
|
| 79 |
+
# These kwargs will be passed to _generate_examples
|
| 80 |
gen_kwargs={
|
| 81 |
+
"filepath": dl_manager.download(os.path.join(self.config.name, "train.jsonl")),
|
| 82 |
"split": "train",
|
| 83 |
},
|
| 84 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
datasets.SplitGenerator(
|
| 86 |
name=datasets.Split.TEST,
|
| 87 |
# These kwargs will be passed to _generate_examples
|
| 88 |
gen_kwargs={
|
| 89 |
+
"filepath": dl_manager.download(os.path.join(self.config.name, "test.jsonl")),
|
| 90 |
"split": "test"
|
| 91 |
},
|
| 92 |
),
|