Felix
commited on
Commit
•
83770ba
1
Parent(s):
11586d5
update columns for supersim tasks
Browse files- superlim-2.py +8 -8
superlim-2.py
CHANGED
@@ -236,7 +236,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
236 |
{
|
237 |
"word_1": datasets.Value("string"),
|
238 |
"word_2": datasets.Value("string"),
|
239 |
-
"
|
240 |
}
|
241 |
)
|
242 |
elif self.config.name == "swesim_similarity":
|
@@ -244,7 +244,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
244 |
{
|
245 |
"word_1": datasets.Value("string"),
|
246 |
"word_2": datasets.Value("string"),
|
247 |
-
"
|
248 |
}
|
249 |
)
|
250 |
elif self.config.name == "swewic":
|
@@ -407,15 +407,15 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
407 |
}
|
408 |
elif self.config.name == "swesim_relatedness":
|
409 |
yield key, {
|
410 |
-
"word_1": row["
|
411 |
-
"word_2": row["
|
412 |
-
"
|
413 |
}
|
414 |
elif self.config.name == "swesim_similarity":
|
415 |
yield key, {
|
416 |
-
"word_1": row["
|
417 |
-
"word_2": row["
|
418 |
-
"
|
419 |
}
|
420 |
elif self.config.name == "swewgr":
|
421 |
yield key, {
|
|
|
236 |
{
|
237 |
"word_1": datasets.Value("string"),
|
238 |
"word_2": datasets.Value("string"),
|
239 |
+
"label": datasets.Value("string"),
|
240 |
}
|
241 |
)
|
242 |
elif self.config.name == "swesim_similarity":
|
|
|
244 |
{
|
245 |
"word_1": datasets.Value("string"),
|
246 |
"word_2": datasets.Value("string"),
|
247 |
+
"label": datasets.Value("string"),
|
248 |
}
|
249 |
)
|
250 |
elif self.config.name == "swewic":
|
|
|
407 |
}
|
408 |
elif self.config.name == "swesim_relatedness":
|
409 |
yield key, {
|
410 |
+
"word_1": row["word_1"],
|
411 |
+
"word_2": row["word_2"],
|
412 |
+
"label": row["label"],
|
413 |
}
|
414 |
elif self.config.name == "swesim_similarity":
|
415 |
yield key, {
|
416 |
+
"word_1": row["word_1"],
|
417 |
+
"word_2": row["word_2"],
|
418 |
+
"label": row["label"],
|
419 |
}
|
420 |
elif self.config.name == "swewgr":
|
421 |
yield key, {
|