Muennighoff
commited on
Commit
•
a195d8d
1
Parent(s):
8328e2d
Update multi_eurlex.py
Browse files- multi_eurlex.py +4 -4
multi_eurlex.py
CHANGED
@@ -8254,9 +8254,8 @@ class MultiEURLEX(datasets.GeneratorBasedBuilder):
|
|
8254 |
features = datasets.Features(
|
8255 |
{
|
8256 |
"celex_id": datasets.Value("string"),
|
8257 |
-
"
|
8258 |
-
|
8259 |
-
),
|
8260 |
"labels": datasets.features.Sequence(
|
8261 |
datasets.ClassLabel(names=_CONCEPTS[self.config.label_level])
|
8262 |
),
|
@@ -8318,7 +8317,8 @@ class MultiEURLEX(datasets.GeneratorBasedBuilder):
|
|
8318 |
data = json.loads(row)
|
8319 |
yield id_, {
|
8320 |
"celex_id": data["celex_id"],
|
8321 |
-
"
|
|
|
8322 |
"labels": data["eurovoc_concepts"][self.config.label_level],
|
8323 |
}
|
8324 |
else:
|
|
|
8254 |
features = datasets.Features(
|
8255 |
{
|
8256 |
"celex_id": datasets.Value("string"),
|
8257 |
+
"x1": datasets.Value("string"),
|
8258 |
+
"x2": datasets.Value("string"),
|
|
|
8259 |
"labels": datasets.features.Sequence(
|
8260 |
datasets.ClassLabel(names=_CONCEPTS[self.config.label_level])
|
8261 |
),
|
|
|
8317 |
data = json.loads(row)
|
8318 |
yield id_, {
|
8319 |
"celex_id": data["celex_id"],
|
8320 |
+
"x1": data["text"][lang1],
|
8321 |
+
"x2": data["text"][lang2],
|
8322 |
"labels": data["eurovoc_concepts"][self.config.label_level],
|
8323 |
}
|
8324 |
else:
|