Felix
commited on
Commit
•
bd4e502
1
Parent(s):
83770ba
update swesic
Browse files- superlim-2.py +10 -18
superlim-2.py
CHANGED
@@ -250,15 +250,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
250 |
elif self.config.name == "swewic":
|
251 |
features = datasets.Features(
|
252 |
{
|
253 |
-
"
|
254 |
-
"
|
255 |
-
"
|
256 |
-
"
|
257 |
-
"
|
258 |
-
"start_1": datasets.Value("string"),
|
259 |
-
"start_2": datasets.Value("string"),
|
260 |
-
"end_1": datasets.Value("string"),
|
261 |
-
"end_2": datasets.Value("string"),
|
262 |
}
|
263 |
)
|
264 |
elif self.config.name == 'argumentation_sent':
|
@@ -425,15 +421,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
425 |
}
|
426 |
elif self.config.name == "swewic":
|
427 |
yield key, {
|
428 |
-
"
|
429 |
-
"
|
430 |
-
"
|
431 |
-
"
|
432 |
-
"
|
433 |
-
"start_1": row["start1"],
|
434 |
-
"end_1": row["end1"],
|
435 |
-
"start_2": row["start2"],
|
436 |
-
"end_2": row["end2"],
|
437 |
}
|
438 |
elif self.config.name == "swewsc":
|
439 |
yield key, {
|
|
|
250 |
elif self.config.name == "swewic":
|
251 |
features = datasets.Features(
|
252 |
{
|
253 |
+
"idx": datasets.Value("string"),
|
254 |
+
"first": datasets.Value("string"),
|
255 |
+
"second": datasets.Value("string"),
|
256 |
+
"label": datasets.Value("string"),
|
257 |
+
"meta": datasets.Value("string"),
|
|
|
|
|
|
|
|
|
258 |
}
|
259 |
)
|
260 |
elif self.config.name == 'argumentation_sent':
|
|
|
421 |
}
|
422 |
elif self.config.name == "swewic":
|
423 |
yield key, {
|
424 |
+
"idx": row["idx"],
|
425 |
+
"first": row["first"],
|
426 |
+
"second": row["second"],
|
427 |
+
"label": row["label"],
|
428 |
+
"meta": row["meta"],
|
|
|
|
|
|
|
|
|
429 |
}
|
430 |
elif self.config.name == "swewsc":
|
431 |
yield key, {
|