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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
66851a2 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:fb03f44aecda4f590dc602378a52bc199cb630dca0a71afa00fc03f1b9e4b516
size 539613244
|