Files changed (2) hide show
  1. README.md +5 -56
  2. config.json +6 -6
README.md CHANGED
@@ -1,17 +1,14 @@
1
  ---
2
- language: en
3
  widget:
4
- - text: Covid cases are increasing fast!
5
- datasets:
6
- - tweet_eval
7
- license: cc-by-4.0
8
  ---
9
 
10
 
11
- # Twitter-roBERTa-base for Sentiment Analysis - UPDATED (2022)
12
 
13
- 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.
14
- 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.
15
 
16
  - Reference Paper: [TimeLMs paper](https://arxiv.org/abs/2202.03829).
17
  - Git Repo: [TimeLMs official repository](https://github.com/cardiffnlp/timelms).
@@ -21,8 +18,6 @@ The original Twitter-based RoBERTa model can be found [here](https://huggingface
21
  1 -> Neutral;
22
  2 -> Positive
23
 
24
- This sentiment analysis model has been integrated into [TweetNLP](https://github.com/cardiffnlp/tweetnlp). You can access the demo [here](https://tweetnlp.org).
25
-
26
  ## Example Pipeline
27
  ```python
28
  from transformers import pipeline
@@ -84,50 +79,4 @@ Output:
84
  1) Negative 0.7236
85
  2) Neutral 0.2287
86
  3) Positive 0.0477
87
- ```
88
-
89
-
90
- ### References
91
- ```
92
- @inproceedings{camacho-collados-etal-2022-tweetnlp,
93
- title = "{T}weet{NLP}: Cutting-Edge Natural Language Processing for Social Media",
94
- author = "Camacho-collados, Jose and
95
- Rezaee, Kiamehr and
96
- Riahi, Talayeh and
97
- Ushio, Asahi and
98
- Loureiro, Daniel and
99
- Antypas, Dimosthenis and
100
- Boisson, Joanne and
101
- Espinosa Anke, Luis and
102
- Liu, Fangyu and
103
- Mart{\'\i}nez C{\'a}mara, Eugenio" and others,
104
- booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
105
- month = dec,
106
- year = "2022",
107
- address = "Abu Dhabi, UAE",
108
- publisher = "Association for Computational Linguistics",
109
- url = "https://aclanthology.org/2022.emnlp-demos.5",
110
- pages = "38--49"
111
- }
112
-
113
- ```
114
-
115
- ```
116
- @inproceedings{loureiro-etal-2022-timelms,
117
- title = "{T}ime{LM}s: Diachronic Language Models from {T}witter",
118
- author = "Loureiro, Daniel and
119
- Barbieri, Francesco and
120
- Neves, Leonardo and
121
- Espinosa Anke, Luis and
122
- Camacho-collados, Jose",
123
- booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: System Demonstrations",
124
- month = may,
125
- year = "2022",
126
- address = "Dublin, Ireland",
127
- publisher = "Association for Computational Linguistics",
128
- url = "https://aclanthology.org/2022.acl-demo.25",
129
- doi = "10.18653/v1/2022.acl-demo.25",
130
- pages = "251--260"
131
- }
132
-
133
  ```
 
1
  ---
2
+ language: english
3
  widget:
4
+ - text: "Covid cases are increasing fast!"
 
 
 
5
  ---
6
 
7
 
8
+ # Twitter-roBERTa-base for Sentiment Analysis - UPDATED (2021)
9
 
10
+ This is a roBERTa-base model trained on ~124M tweets from January 2018 to December 2021 (see [here](https://huggingface.co/cardiffnlp/twitter-roberta-base-2021-124m)), and finetuned for sentiment analysis with the TweetEval benchmark.
11
+ The original roBERTa-base 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.
12
 
13
  - Reference Paper: [TimeLMs paper](https://arxiv.org/abs/2202.03829).
14
  - Git Repo: [TimeLMs official repository](https://github.com/cardiffnlp/timelms).
 
18
  1 -> Neutral;
19
  2 -> Positive
20
 
 
 
21
  ## Example Pipeline
22
  ```python
23
  from transformers import pipeline
 
79
  1) Negative 0.7236
80
  2) Neutral 0.2287
81
  3) Positive 0.0477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  ```
config.json CHANGED
@@ -12,16 +12,16 @@
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 768,
14
  "id2label": {
15
- "0": "negative",
16
- "1": "neutral",
17
- "2": "positive"
18
  },
19
  "initializer_range": 0.02,
20
  "intermediate_size": 3072,
21
  "label2id": {
22
- "negative": 0,
23
- "neutral": 1,
24
- "positive": 2
25
  },
26
  "layer_norm_eps": 1e-05,
27
  "max_position_embeddings": 514,
 
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 768,
14
  "id2label": {
15
+ "0": "Negative",
16
+ "1": "Neutral",
17
+ "2": "Positive"
18
  },
19
  "initializer_range": 0.02,
20
  "intermediate_size": 3072,
21
  "label2id": {
22
+ "Negative": 0,
23
+ "Neutral": 1,
24
+ "Positive": 2
25
  },
26
  "layer_norm_eps": 1e-05,
27
  "max_position_embeddings": 514,