Igor
commited on
Commit
·
3a6468c
1
Parent(s):
3a1843e
minor(dev): test mapping
Browse files
daiso.py
CHANGED
@@ -148,7 +148,7 @@ class DAISO(datasets.GeneratorBasedBuilder):
|
|
148 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
149 |
features = {feature: datasets.Value("string") for feature in self.config.features}
|
150 |
if self.config.label_classes:
|
151 |
-
features["Label"] = datasets.features.ClassLabel(names=self.config.label_classes.keys())
|
152 |
features["Idx"] = datasets.Value("int32")
|
153 |
# if self.config.name == "": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
154 |
# features = datasets.Features(
|
|
|
148 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
149 |
features = {feature: datasets.Value("string") for feature in self.config.features}
|
150 |
if self.config.label_classes:
|
151 |
+
features["Label"] = datasets.features.ClassLabel(names=list(self.config.label_classes.keys()))
|
152 |
features["Idx"] = datasets.Value("int32")
|
153 |
# if self.config.name == "": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
154 |
# features = datasets.Features(
|