Remove tuple from translation feature

#2
by albertvillanova HF staff - opened
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,