Upload kscg_small_20v50_16k.py with huggingface_hub
Browse files- kscg_small_20v50_16k.py +5 -3
kscg_small_20v50_16k.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import datasets
|
2 |
|
3 |
-
|
|
|
|
|
4 |
|
5 |
_PROMPTS_URLS = {
|
6 |
"train": "data/prompts-train.txt.gz",
|
@@ -42,8 +44,8 @@ class KscgSmall25(datasets.GeneratorBasedBuilder):
|
|
42 |
|
43 |
prompts_paths = dl_manager.download_and_extract(_PROMPTS_URLS)
|
44 |
archive = dl_manager.download(_DATA_URL)
|
45 |
-
train_dir = "
|
46 |
-
test_dir = "
|
47 |
|
48 |
return [
|
49 |
datasets.SplitGenerator(
|
|
|
1 |
import datasets
|
2 |
|
3 |
+
data_name = "kscg_small_20v50_16k"
|
4 |
+
|
5 |
+
_DATA_URL = f"data/{data_name}.tar.gz"
|
6 |
|
7 |
_PROMPTS_URLS = {
|
8 |
"train": "data/prompts-train.txt.gz",
|
|
|
44 |
|
45 |
prompts_paths = dl_manager.download_and_extract(_PROMPTS_URLS)
|
46 |
archive = dl_manager.download(_DATA_URL)
|
47 |
+
train_dir = f"{data_name}/train"
|
48 |
+
test_dir = f"{data_name}/test"
|
49 |
|
50 |
return [
|
51 |
datasets.SplitGenerator(
|