Felix
commited on
Commit
•
374ecc4
1
Parent(s):
5ef976d
update sweparaphrase
Browse files- superlim-2.py +6 -2
superlim-2.py
CHANGED
@@ -214,9 +214,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
214 |
elif self.config.name == "swepar":
|
215 |
features = datasets.Features(
|
216 |
{
|
|
|
|
|
217 |
"sentence_1": datasets.Value("string"),
|
218 |
"sentence_2": datasets.Value("string"),
|
219 |
-
"
|
220 |
}
|
221 |
)
|
222 |
elif self.config.name == "swesat":
|
@@ -392,9 +394,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
392 |
}
|
393 |
elif self.config.name == "swepar":
|
394 |
yield key, {
|
|
|
|
|
395 |
"sentence_1": row["sentence_1"],
|
396 |
"sentence_2": row["sentence_2"],
|
397 |
-
"
|
398 |
}
|
399 |
elif self.config.name == "swesat":
|
400 |
yield key, {
|
|
|
214 |
elif self.config.name == "swepar":
|
215 |
features = datasets.Features(
|
216 |
{
|
217 |
+
"genre": datasets.Value("string"),
|
218 |
+
"file": datasets.Value("string"),
|
219 |
"sentence_1": datasets.Value("string"),
|
220 |
"sentence_2": datasets.Value("string"),
|
221 |
+
"label": datasets.Value("string"),
|
222 |
}
|
223 |
)
|
224 |
elif self.config.name == "swesat":
|
|
|
394 |
}
|
395 |
elif self.config.name == "swepar":
|
396 |
yield key, {
|
397 |
+
"genre": row["genre"],
|
398 |
+
"file": row["file"],
|
399 |
"sentence_1": row["sentence_1"],
|
400 |
"sentence_2": row["sentence_2"],
|
401 |
+
"label": row["label"],
|
402 |
}
|
403 |
elif self.config.name == "swesat":
|
404 |
yield key, {
|