Compare commits

..

11 Commits

Author SHA1 Message Date
Jose Camacho Collados f8f82141e1 Add dataset 2023-01-14 05:48:40 +00:00
Jose Camacho Collados 25a9e2455e Update README 2022 2023-01-03 17:25:55 +00:00
Jose Camacho Collados f6e0c90523 Updated language code 2022-12-17 04:03:50 +00:00
Asahi Ushio a9027cdcfd Update config.json 2022-11-28 11:30:04 +00:00
Jose Camacho Collados 5916057ce8 Update reference 2022-03-31 09:47:41 +00:00
Jose Camacho Collados a483d021cb Update README.md 2022-03-21 09:03:56 +00:00
Jose Camacho Collados 1941b34c43 Update references 2022-03-21 09:03:38 +00:00
Cardiff NLP b40ad29934 Update README.md 2022-03-16 19:33:17 +00:00
Cardiff NLP 9f7b583307 Update README.md 2022-03-15 01:49:12 +00:00
cardiffnlp 99de9f5bb0 Merge branch 'main' of https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest into main 2022-03-15 01:43:27 +00:00
Cardiff NLP d72a2a6a0b Update README.md 2022-03-15 01:27:50 +00:00
2 changed files with 17 additions and 14 deletions

View File

@ -1,24 +1,27 @@
---
language: english
language: en
widget:
- text: "Covid cases are increasing fast!"
- text: "🤗"
- text: "I hate you 🤮"
- text: Covid cases are increasing fast!
datasets:
- 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).
- Git Repo: [Tweeteval official repository](https://github.com/cardiffnlp/tweeteval).
- Reference Paper: [TimeLMs paper](https://arxiv.org/abs/2202.03829).
- Git Repo: [TimeLMs official repository](https://github.com/cardiffnlp/timelms).
<b>Labels</b>:
0 -> Negative;
1 -> Neutral;
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
```python
from transformers import pipeline

View File

@ -12,16 +12,16 @@
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "Negative",
"1": "Neutral",
"2": "Positive"
"0": "negative",
"1": "neutral",
"2": "positive"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"Negative": 0,
"Neutral": 1,
"Positive": 2
"negative": 0,
"neutral": 1,
"positive": 2
},
"layer_norm_eps": 1e-05,
"max_position_embeddings": 514,