File size: 1,005 Bytes
1c98e74
aee07bc
 
669aae2
aee07bc
 
 
 
669aae2
 
aee07bc
1c98e74
 
aee07bc
1c98e74
aee07bc
 
1c98e74
 
 
aee07bc
 
 
 
 
 
 
1c98e74
aee07bc
1c98e74
aee07bc
 
 
 
 
1c98e74
aee07bc
 
 
1c98e74
aee07bc
 
 
1c98e74
 
 
aee07bc
1c98e74
aee07bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
language:
- en
license: mit
datasets:
- cardiffnlp/x_sensitive
metrics:
- f1
widget:
- text: Call me today to earn some money mofos!
pipeline_tag: text-classification
---

# twitter-roberta-base-sensitive-binary

This is a RoBERTa-base model trained on 154M tweets until the end of December 2022 and finetuned for detecting sensitive content (binary classification) on the [_X-Sensitive_](https://huggingface.co/datasets/cardiffnlp/x_sensitive) dataset.
The original Twitter-based RoBERTa model can be found [here](https://huggingface.co/cardiffnlp/twitter-roberta-base-2022-154m).



## Labels
```
"id2label": {
    "0": "non-sensitive",
    "1": "sensitive"
  }
```

## Full classification example

```python
from transformers import pipeline
    
pipe = pipeline(model='cardiffnlp/twitter-roberta-base-sensitive-binary')
text = "Call me today to earn some money mofos!"

pipe(text)
```
Output: 

```
[{'label': 'sensitive', 'score': 0.999821126461029}]
```



## BibTeX entry and citation info

TBA