Datasets:
Commit ·
754488c
1
Parent(s): d8dcf64
Fixed Bug for multi_eurlex
Browse files- lextreme.py +2 -2
lextreme.py
CHANGED
|
@@ -4070,8 +4070,8 @@ class LEXTREME(datasets.GeneratorBasedBuilder):
|
|
| 4070 |
def _generate_examples(self, split):
|
| 4071 |
"""This function returns the examples in the raw (text) form."""
|
| 4072 |
# we can just do this, since all our datasets are available on the huggingface hub
|
| 4073 |
-
if
|
| 4074 |
-
dataset = datasets.load_dataset(
|
| 4075 |
label_level=self.config.label_level)
|
| 4076 |
else:
|
| 4077 |
dataset = datasets.load_dataset(self.config.hf_hub_name, self.config.config_name, split=split)
|
|
|
|
| 4070 |
def _generate_examples(self, split):
|
| 4071 |
"""This function returns the examples in the raw (text) form."""
|
| 4072 |
# we can just do this, since all our datasets are available on the huggingface hub
|
| 4073 |
+
if self.config.hf_hub_name == "multi_eurlex":
|
| 4074 |
+
dataset = datasets.load_dataset("multi_eurlex", language=self.config.config_name, split=split,
|
| 4075 |
label_level=self.config.label_level)
|
| 4076 |
else:
|
| 4077 |
dataset = datasets.load_dataset(self.config.hf_hub_name, self.config.config_name, split=split)
|