Instructions to use cardiffnlp/bertweet-base-hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/bertweet-base-hate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/bertweet-base-hate")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/bertweet-base-hate") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/bertweet-base-hate") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
5d8e3b7 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:65b461d1c190c9ed4ecc93021918ee91c6c2af0d95251907b3cffc3db391f700
size 539613244
|