Instructions to use cardiffnlp/bertweet-base-offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/bertweet-base-offensive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/bertweet-base-offensive")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/bertweet-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/bertweet-base-offensive") - Notebooks
- Google Colab
- Kaggle
Licensing type for this model
➕ 1
#3 opened almost 2 years ago
by
arnaudj
Adding ONNX file of this model
#2 opened almost 3 years ago
by
ifs
Adding `safetensors` variant of this model
#1 opened about 3 years ago
by
SFconvertbot