Datasets:
ArXiv:
License:
error fix
Browse files- snow-mountain.py +20 -0
snow-mountain.py
CHANGED
@@ -59,6 +59,8 @@ for lang in _LANGUAGES:
|
|
59 |
"train_full": f"data/experiments/{lang}/train_full.csv",
|
60 |
"val_full": f"data/experiments/{lang}/val_full.csv",
|
61 |
"test_common": f"data/experiments/{lang}/test_common.csv",
|
|
|
|
|
62 |
}
|
63 |
_FILES[lang] = file_dic
|
64 |
|
@@ -127,6 +129,24 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
127 |
},
|
128 |
)
|
129 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
return splits
|
131 |
|
132 |
|
|
|
59 |
"train_full": f"data/experiments/{lang}/train_full.csv",
|
60 |
"val_full": f"data/experiments/{lang}/val_full.csv",
|
61 |
"test_common": f"data/experiments/{lang}/test_common.csv",
|
62 |
+
"all_verses": f"data/cleaned/{lang}/all_verses.csv",
|
63 |
+
"short_verses": f"data/cleaned/{lang}/short_verses.csv",
|
64 |
}
|
65 |
_FILES[lang] = file_dic
|
66 |
|
|
|
129 |
},
|
130 |
)
|
131 |
)
|
132 |
+
splits.append(
|
133 |
+
datasets.SplitGenerator(
|
134 |
+
name="all_verses",
|
135 |
+
gen_kwargs={
|
136 |
+
"filepath": downloaded_files["all_verses"],
|
137 |
+
"dl_manager": dl_manager,
|
138 |
+
},
|
139 |
+
)
|
140 |
+
)
|
141 |
+
splits.append(
|
142 |
+
datasets.SplitGenerator(
|
143 |
+
name="short_verses",
|
144 |
+
gen_kwargs={
|
145 |
+
"filepath": downloaded_files["short_verses"],
|
146 |
+
"dl_manager": dl_manager,
|
147 |
+
},
|
148 |
+
)
|
149 |
+
)
|
150 |
return splits
|
151 |
|
152 |
|