Instructions to use cardiffnlp/twitter-roberta-base-hate-latest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-roberta-base-hate-latest with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-hate-latest")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-hate-latest") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-hate-latest", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,7 @@ model-index:
|
|
| 5 |
pipeline_tag: text-classification
|
| 6 |
language:
|
| 7 |
- en
|
|
|
|
| 8 |
---
|
| 9 |
# cardiffnlp/twitter-roberta-base-hate-latest
|
| 10 |
|
|
|
|
| 5 |
pipeline_tag: text-classification
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
+
license: cc-by-4.0
|
| 9 |
---
|
| 10 |
# cardiffnlp/twitter-roberta-base-hate-latest
|
| 11 |
|