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
File size: 134 Bytes
afebc0c | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:80324baf0389b06bd5ec24f98e2cb4ac39a90ac22dc42a7244c8fd4f156ab77b
size 498595901
|