Text Classification
Transformers
Safetensors
English
distilbert
multi-label-classification
content-moderation
toxic-comment-detection
text-embeddings-inference
Instructions to use lakresi/toxic-comment-moderator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lakresi/toxic-comment-moderator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lakresi/toxic-comment-moderator")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lakresi/toxic-comment-moderator") model = AutoModelForSequenceClassification.from_pretrained("lakresi/toxic-comment-moderator") - Notebooks
- Google Colab
- Kaggle
| { | |
| "toxic": 0.5199999999999998, | |
| "severe_toxic": 0.4599999999999999, | |
| "obscene": 0.4399999999999999, | |
| "threat": 0.35999999999999993, | |
| "insult": 0.5199999999999998, | |
| "identity_hate": 0.26 | |
| } |