Instructions to use dima806/toxic-comments-classifier-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dima806/toxic-comments-classifier-distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dima806/toxic-comments-classifier-distilbert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dima806/toxic-comments-classifier-distilbert") model = AutoModelForSequenceClassification.from_pretrained("dima806/toxic-comments-classifier-distilbert") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("dima806/toxic-comments-classifier-distilbert")
model = AutoModelForSequenceClassification.from_pretrained("dima806/toxic-comments-classifier-distilbert")Quick Links
See https://www.kaggle.com/code/dima806/toxic-comments-weighted-classify-distilbert for more details.
- Downloads last month
- 14
Model tree for dima806/toxic-comments-classifier-distilbert
Base model
google-bert/bert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dima806/toxic-comments-classifier-distilbert")