Upload toxicity.py
Browse files- toxicity.py +1 -1
toxicity.py
CHANGED
|
@@ -1230,7 +1230,7 @@ features_types_per_config = {
|
|
| 1230 |
"toxicity": {f: datasets.Value("float32") for f in _BASE_FEATURE_NAMES[:-1]}
|
| 1231 |
}
|
| 1232 |
features_types_per_config["toxicity"]["is_toxic"] = datasets.ClassLabel(num_classes=2)
|
| 1233 |
-
features_per_config = {
|
| 1234 |
|
| 1235 |
|
| 1236 |
class ToxicityConfig(datasets.BuilderConfig):
|
|
|
|
| 1230 |
"toxicity": {f: datasets.Value("float32") for f in _BASE_FEATURE_NAMES[:-1]}
|
| 1231 |
}
|
| 1232 |
features_types_per_config["toxicity"]["is_toxic"] = datasets.ClassLabel(num_classes=2)
|
| 1233 |
+
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|
| 1234 |
|
| 1235 |
|
| 1236 |
class ToxicityConfig(datasets.BuilderConfig):
|