Datasets:
Remove tuple from translation feature
#2
by
albertvillanova
HF staff
- opened
capes.py
CHANGED
@@ -60,7 +60,7 @@ class Capes(datasets.GeneratorBasedBuilder):
|
|
60 |
return datasets.DatasetInfo(
|
61 |
description=_DESCRIPTION,
|
62 |
features=datasets.Features(
|
63 |
-
{"translation": datasets.features.Translation(languages=
|
64 |
),
|
65 |
supervised_keys=None,
|
66 |
homepage=_HOMEPAGE,
|
|
|
60 |
return datasets.DatasetInfo(
|
61 |
description=_DESCRIPTION,
|
62 |
features=datasets.Features(
|
63 |
+
{"translation": datasets.features.Translation(languages=self.config.name.split("-"))}
|
64 |
),
|
65 |
supervised_keys=None,
|
66 |
homepage=_HOMEPAGE,
|