Instructions to use TeamGZG/toxic-comment-classification-project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use TeamGZG/toxic-comment-classification-project with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("TeamGZG/toxic-comment-classification-project") - Notebooks
- Google Colab
- Kaggle
update README.md
Browse filesThe prepared model includes the steps of analyzing the comments, cleaning, preprocessing and training the model with appropriate parameter selections.
As a first step, it first examines comments based on whether they are OFFENSIVE(1) or NOT OFFENSIVE(0)
If the comment is OFFENSIVE Predicts which tags INSULT, SEXIST, PROFANITY, and RACIST belong to.
If NOT OFFENSIVE(0) it accepts OTHER.