Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ language:
|
|
6 |
- en
|
7 |
pipeline_tag: text-classification
|
8 |
---
|
9 |
-
# cardiffnlp/twitter-roberta-large-latest
|
10 |
|
11 |
|
12 |
This is a RoBERTa-large model trained on 154M tweets until the end of December 2022 and finetuned for hate speech detection (multiclass classification) on the _TweetHate_ dataset of [SuperTweetEval](https://huggingface.co/datasets/cardiffnlp/super_tweeteval).
|
@@ -31,7 +31,7 @@ The original Twitter-based RoBERTa model can be found [here](https://huggingface
|
|
31 |
from transformers import pipeline
|
32 |
text = 'Eid Mubarak Everyone!!! ❤ May Allah unite all Muslims, show us the right path, and bless us with good health.❣'
|
33 |
|
34 |
-
pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-large-latest
|
35 |
pipe(text)
|
36 |
>> [{'label': 'not_hate', 'score': 0.9997966885566711}]
|
37 |
```
|
|
|
6 |
- en
|
7 |
pipeline_tag: text-classification
|
8 |
---
|
9 |
+
# cardiffnlp/twitter-roberta-large-hate-latest
|
10 |
|
11 |
|
12 |
This is a RoBERTa-large model trained on 154M tweets until the end of December 2022 and finetuned for hate speech detection (multiclass classification) on the _TweetHate_ dataset of [SuperTweetEval](https://huggingface.co/datasets/cardiffnlp/super_tweeteval).
|
|
|
31 |
from transformers import pipeline
|
32 |
text = 'Eid Mubarak Everyone!!! ❤ May Allah unite all Muslims, show us the right path, and bless us with good health.❣'
|
33 |
|
34 |
+
pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-large-hate-latest")
|
35 |
pipe(text)
|
36 |
>> [{'label': 'not_hate', 'score': 0.9997966885566711}]
|
37 |
```
|