Instructions to use cardiffnlp/twitter-roberta-base-offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-roberta-base-offensive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-offensive")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-offensive") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
upload flax model afebc0c
allow flax 5bf8bc1
Update README.md 77c0114
Update README.md f36ba54
Update README.md cf89623
Update README.md 6a7e149
Adding tweeteval classifier 95b9695
cardiffnlp commited on