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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/roberta-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/roberta-base-offensive", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add evaluation results on the offensive config and train split of tweet_eval
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](https://huggingface.co/datasets/tweet_eval) dataset by @fabeelaalirawther@gmail.com, using the predictions stored [here](https://huggingface.co/datasets/autoevaluate/autoeval-eval-tweet_eval-offensive-f58805-30720144955).\ Accept this pull request to see the results displayed on the [Hub leaderboard](https://huggingface.co/spaces/autoevaluate/leaderboards?dataset=tweet_eval).\ Evaluate your model on more datasets [here](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=tweet_eval).d54766d
-
model update
e41bd7a
-
model update
ee52490 -
add tokenizer
1f8e529 -
add model
c91a63a -
initial commit
08e0ad0