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
Add evaluation results on the offensive config and train split of tweet_eval
#2
by autoevaluator HF Staff - opened
Beep boop, I am a bot from Hugging Face's automatic model evaluator π!
Your model has been evaluated on the offensive config and train split of the tweet_eval dataset by @fabeelaalirawther@gmail.com, using the predictions stored here.
Accept this pull request to see the results displayed on the Hub leaderboard.
Evaluate your model on more datasets here.