Compare commits
11 Commits
6fa1d97cb7
...
f8f82141e1
Author | SHA1 | Date |
---|---|---|
|
f8f82141e1 | |
|
25a9e2455e | |
|
f6e0c90523 | |
|
a9027cdcfd | |
|
5916057ce8 | |
|
a483d021cb | |
|
1941b34c43 | |
|
b40ad29934 | |
|
9f7b583307 | |
|
99de9f5bb0 | |
|
d72a2a6a0b |
19
README.md
19
README.md
|
@ -1,24 +1,27 @@
|
||||||
---
|
---
|
||||||
language: english
|
language: en
|
||||||
widget:
|
widget:
|
||||||
- text: "Covid cases are increasing fast!"
|
- text: Covid cases are increasing fast!
|
||||||
- text: "🤗"
|
datasets:
|
||||||
- text: "I hate you 🤮"
|
- tweet_eval
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
# Twitter-roBERTa-base for Sentiment Analysis
|
# Twitter-roBERTa-base for Sentiment Analysis - UPDATED (2022)
|
||||||
|
|
||||||
This is a roBERTa-base model trained on ~200M tweets and finetuned for sentiment analysis with the TweetEval benchmark. This model is suitable for English.
|
This is a RoBERTa-base model trained on ~124M tweets from January 2018 to December 2021, and finetuned for sentiment analysis with the TweetEval benchmark.
|
||||||
|
The original Twitter-based RoBERTa model can be found [here](https://huggingface.co/cardiffnlp/twitter-roberta-base-2021-124m) and the original reference paper is [TweetEval](https://github.com/cardiffnlp/tweeteval). This model is suitable for English.
|
||||||
|
|
||||||
- Reference Paper: [_TweetEval_ (Findings of EMNLP 2020)](https://arxiv.org/pdf/2010.12421.pdf).
|
- Reference Paper: [TimeLMs paper](https://arxiv.org/abs/2202.03829).
|
||||||
- Git Repo: [Tweeteval official repository](https://github.com/cardiffnlp/tweeteval).
|
- Git Repo: [TimeLMs official repository](https://github.com/cardiffnlp/timelms).
|
||||||
|
|
||||||
<b>Labels</b>:
|
<b>Labels</b>:
|
||||||
0 -> Negative;
|
0 -> Negative;
|
||||||
1 -> Neutral;
|
1 -> Neutral;
|
||||||
2 -> Positive
|
2 -> Positive
|
||||||
|
|
||||||
|
This sentiment analysis model has been integrated into [TweetNLP](https://github.com/cardiffnlp/tweetnlp). You can access the demo [here](https://tweetnlp.org).
|
||||||
|
|
||||||
## Example Pipeline
|
## Example Pipeline
|
||||||
```python
|
```python
|
||||||
from transformers import pipeline
|
from transformers import pipeline
|
||||||
|
|
12
config.json
12
config.json
|
@ -12,16 +12,16 @@
|
||||||
"hidden_dropout_prob": 0.1,
|
"hidden_dropout_prob": 0.1,
|
||||||
"hidden_size": 768,
|
"hidden_size": 768,
|
||||||
"id2label": {
|
"id2label": {
|
||||||
"0": "Negative",
|
"0": "negative",
|
||||||
"1": "Neutral",
|
"1": "neutral",
|
||||||
"2": "Positive"
|
"2": "positive"
|
||||||
},
|
},
|
||||||
"initializer_range": 0.02,
|
"initializer_range": 0.02,
|
||||||
"intermediate_size": 3072,
|
"intermediate_size": 3072,
|
||||||
"label2id": {
|
"label2id": {
|
||||||
"Negative": 0,
|
"negative": 0,
|
||||||
"Neutral": 1,
|
"neutral": 1,
|
||||||
"Positive": 2
|
"positive": 2
|
||||||
},
|
},
|
||||||
"layer_norm_eps": 1e-05,
|
"layer_norm_eps": 1e-05,
|
||||||
"max_position_embeddings": 514,
|
"max_position_embeddings": 514,
|
||||||
|
|
Loading…
Reference in New Issue