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

  • Log In
  • Sign Up

cardiffnlp
/
twitter-roberta-base-hate

Text Classification
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
roberta
Model card Files Files and versions
xet
Community
4

Instructions to use cardiffnlp/twitter-roberta-base-hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use cardiffnlp/twitter-roberta-base-hate with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-hate")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-hate")
    model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-hate")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
twitter-roberta-base-hate
1.5 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 11 commits
Pedrada's picture
Pedrada
Add new hate model
51a4ae0 about 3 years ago
  • .ipynb_checkpoints
    Adding tweeteval classifier over 5 years ago
  • .gitattributes
    391 Bytes
    allow flax almost 5 years ago
  • README.md
    2.68 kB
    Add new hate model about 3 years ago
  • config.json
    700 Bytes
    Update config.json over 3 years ago
  • flax_model.msgpack
    499 MB
    xet
    upload flax model almost 5 years ago
  • merges.txt
    456 kB
    Adding tweeteval classifier over 5 years ago
  • pytorch_model.bin
    499 MB
    xet
    Adding tweeteval classifier over 5 years ago
  • special_tokens_map.json
    150 Bytes
    Adding tweeteval classifier over 5 years ago
  • tf_model.h5
    501 MB
    xet
    Adding tweeteval classifier over 5 years ago
  • vocab.json
    899 kB
    Adding tweeteval classifier over 5 years ago