Instructions to use cardiffnlp/roberta-base-offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/roberta-base-offensive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/roberta-base-offensive")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/roberta-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/roberta-base-offensive") - Notebooks
- Google Colab
- Kaggle
Librarian Bot: Add base_model information to model
#3 opened over 2 years ago
by
librarian-bot
Add evaluation results on the offensive config and train split of tweet_eval
#2 opened over 2 years ago
by
autoevaluator
Adding `safetensors` variant of this model
#1 opened about 3 years ago
by
SFconvertbot