Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
datasets:
|
4 |
+
- cardiffnlp/super_tweeteval
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
---
|
8 |
+
# cardiffnlp/twitter-roberta-large-latest-tweet-intimacy
|
9 |
+
|
10 |
+
This is a RoBERTa-large model trained on 154M tweets until the end of December 2022 and finetuned for intimacy analysis (regression on a single text) on the _TweetIntimacy_ dataset of [SuperTweetEval](https://huggingface.co/datasets/cardiffnlp/super_tweeteval).
|
11 |
+
The original Twitter-based RoBERTa model can be found [here](https://huggingface.co/cardiffnlp/twitter-roberta-large-2022-154m).
|
12 |
+
|
13 |
+
## Example
|
14 |
+
```python
|
15 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
16 |
+
|
17 |
+
model_name = "cardiffnlp/twitter-roberta-large-latest-tweet-intimacy"
|
18 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
20 |
+
|
21 |
+
|
22 |
+
text= '@user Furthermore, harassment is ILLEGAL in any form!'
|
23 |
+
model(**tokenizer(text, return_tensors="pt")).logits
|
24 |
+
>> tensor([1.6744])
|
25 |
+
```
|
26 |
+
|
27 |
+
## Citation Information
|
28 |
+
Please cite the [reference paper](https://arxiv.org/abs/2310.14757) if you use this model.
|
29 |
+
|
30 |
+
```bibtex
|
31 |
+
@inproceedings{antypas2023supertweeteval,
|
32 |
+
title={SuperTweetEval: A Challenging, Unified and Heterogeneous Benchmark for Social Media NLP Research},
|
33 |
+
author={Dimosthenis Antypas and Asahi Ushio and Francesco Barbieri and Leonardo Neves and Kiamehr Rezaee and Luis Espinosa-Anke and Jiaxin Pei and Jose Camacho-Collados},
|
34 |
+
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2023},
|
35 |
+
year={2023}
|
36 |
+
}
|
37 |
+
```
|
38 |
+
|