albertvillanova HF staff commited on
Commit
16dceab
1 Parent(s): 2b60fcb

Remove tuple from translation feature

Browse files
Files changed (1) hide show
  1. capes.py +1 -1
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=tuple(self.config.name.split("-")))}
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,