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
File size: 1,004 Bytes
0ebf33b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | {
"model_type": "keras",
"keras_version": "3.7.0",
"tensorflow_version": "2.19.0",
"max_sequence_length": 150,
"vocab_size": 10000,
"num_labels": 9,
"label2id": {
"Child Sexual Exploitation": 0,
"Elections": 1,
"Non-Violent Crimes": 2,
"Safe": 3,
"Sex-Related Crimes": 4,
"Suicide & Self-Harm": 5,
"Unknown S-Type": 6,
"Violent Crimes": 7,
"Unsafe": 8
},
"id2label": {
"0": "Child Sexual Exploitation",
"1": "Elections",
"2": "Non-Violent Crimes",
"3": "Safe",
"4": "Sex-Related Crimes",
"5": "Suicide & Self-Harm",
"6": "Unknown S-Type",
"7": "Violent Crimes",
"8": "Unsafe"
},
"tokenizer_file": "tokenizer.json",
"task": "text-classification",
"language": "multilingual",
"input_format": "concatenated_text_and_image_description",
"pipeline_tag": "text-classification",
"tags": [
"toxic-detection",
"text-classification",
"keras",
"tensorflow",
"multiclass",
"safety"
]
}
|