Datasets:
Upload toxicity.py
Browse files- toxicity.py +1 -0
toxicity.py
CHANGED
@@ -1230,6 +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 |
|
1234 |
|
1235 |
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 = {"toxicity": _BASE_FEATURE_NAMES}
|
1234 |
|
1235 |
|
1236 |
class ToxicityConfig(datasets.BuilderConfig):
|