Datasets:
Commit
•
16dceab
1
Parent(s):
2b60fcb
Remove tuple from translation feature
Browse files
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,
|