Instructions to use NightPrince/Toxic_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use NightPrince/Toxic_Classification with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("NightPrince/Toxic_Classification") - Keras
How to use NightPrince/Toxic_Classification with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://NightPrince/Toxic_Classification") - Notebooks
- Google Colab
- Kaggle
Upload label_map.json
Browse files- label_map.json +11 -0
label_map.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"0": "toxic",
|
| 3 |
+
"1": "severe_toxic",
|
| 4 |
+
"2": "obscene",
|
| 5 |
+
"3": "threat",
|
| 6 |
+
"4": "insult",
|
| 7 |
+
"5": "identity_hate",
|
| 8 |
+
"6": "non_toxic",
|
| 9 |
+
"7": "other",
|
| 10 |
+
"8": "unknown"
|
| 11 |
+
}
|