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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/bertweet-base-hate") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/bertweet-base-hate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
3c4aa98
-
upload flax model
5d8e3b7 -
allow flax
79ff3f0
-
Adding bertweet classifier
cardiffnlp3613b66 -
initial commit
bdffab9