Update README.md
Browse files
README.md
CHANGED
@@ -1,7 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# cardiffnlp/twitter-roberta-base-latest-tweet-nerd
|
2 |
|
3 |
-
This is a
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
```python
|
6 |
from transformers import pipeline
|
7 |
text = 'Banana+Nutella snack pack=someone is gonna see me crying in the break room'
|
@@ -12,4 +30,16 @@ text_input = f"{text} </s> {definition} </s> {target}"
|
|
12 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
13 |
pipe(text_input)
|
14 |
>> [{'label': 'yes', 'score': 0.9993378520011902}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
```
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
datasets:
|
4 |
+
- cardiffnlp/super_tweeteval
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
pipeline_tag: text-classification
|
8 |
+
---
|
9 |
# cardiffnlp/twitter-roberta-base-latest-tweet-nerd
|
10 |
|
11 |
+
This is a RoBERTa-base model trained on 154M tweets until the end of December 2022 and finetuned for name entity Disambiguation (binary classification) on the _TweetNERD_ dataset of [SuperTweetEval](https://huggingface.co/datasets/cardiffnlp/super_tweeteval).
|
12 |
+
The original Twitter-based RoBERTa model can be found [here](https://huggingface.co/cardiffnlp/twitter-roberta-base-2022-154m).
|
13 |
|
14 |
+
# Labels
|
15 |
+
<code>
|
16 |
+
"id2label": {
|
17 |
+
"0": "no",
|
18 |
+
"1": "yes"
|
19 |
+
}
|
20 |
+
</code>
|
21 |
+
|
22 |
+
## Example
|
23 |
```python
|
24 |
from transformers import pipeline
|
25 |
text = 'Banana+Nutella snack pack=someone is gonna see me crying in the break room'
|
|
|
30 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
31 |
pipe(text_input)
|
32 |
>> [{'label': 'yes', 'score': 0.9993378520011902}]
|
33 |
+
```
|
34 |
+
|
35 |
+
## Citation Information
|
36 |
+
Please cite the [reference paper](https://arxiv.org/abs/2310.14757) if you use this model.
|
37 |
+
|
38 |
+
```bibtex
|
39 |
+
@inproceedings{antypas2023supertweeteval,
|
40 |
+
title={SuperTweetEval: A Challenging, Unified and Heterogeneous Benchmark for Social Media NLP Research},
|
41 |
+
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},
|
42 |
+
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2023},
|
43 |
+
year={2023}
|
44 |
+
}
|
45 |
```
|