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
#3
by arnaudj - opened
Hello Cardiff NLP team,
Would you mind adding the licensing type of this model?
Ideally a LICENSE file.
Should we assume MIT license since https://github.com/cardiffnlp/tweetnlp is?
Thank you very much
Warm regards