Datasets:
Upload adult.py
Browse files
adult.py
CHANGED
@@ -118,10 +118,9 @@ __features_per_config = {
|
|
118 |
|
119 |
|
120 |
class AdultConfig(datasets.BuilderConfig):
|
121 |
-
def __init__(self,
|
122 |
super(AdultConfig, self).__init__(version = VERSION, **kwargs)
|
123 |
-
self.features =
|
124 |
-
self.labels.names = labels_names
|
125 |
|
126 |
|
127 |
class Adult(datasets.GeneratorBasedBuilder):
|
|
|
118 |
|
119 |
|
120 |
class AdultConfig(datasets.BuilderConfig):
|
121 |
+
def __init__(self, **kwargs):
|
122 |
super(AdultConfig, self).__init__(version = VERSION, **kwargs)
|
123 |
+
self.features = __features_per_config[kwargs["name"]]
|
|
|
124 |
|
125 |
|
126 |
class Adult(datasets.GeneratorBasedBuilder):
|