Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

unitary
/
toxic-bert

Text Classification
Transformers
PyTorch
JAX
Safetensors
bert
Model card Files Files and versions
xet
Community
10

Instructions to use unitary/toxic-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use unitary/toxic-bert with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="unitary/toxic-bert")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("unitary/toxic-bert")
    model = AutoModelForSequenceClassification.from_pretrained("unitary/toxic-bert")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Fix: Define missing `input_text` variable to enable result formatting in example code

1
#11 opened 10 months ago by
anon-repair-bot

Upload tokenizer.json

1
#9 opened about 2 years ago by
ada-closure

Disclaimer no longer necessary?

#6 opened over 2 years ago by
umm-maybe

Adding `safetensors` variant of this model

#5 opened over 2 years ago by
SFconvertbot

Model license

#4 opened over 2 years ago by
masoudhashemi

Training of toxic-bert

1
#3 opened about 3 years ago by
JOhan1906

Adding `safetensors` variant of this model

#2 opened about 3 years ago by
SFconvertbot

updated models?

👍 3
#1 opened over 3 years ago by
clem
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs