Downloads · 30 days
19
6% of all-time downloads
cardiffnlp/twitter-roberta-base-sensitive-binary
twitter-roberta-base-sensitive-binary is a text classification model from cardiffnlp. Use it when you need a label for a piece of text. The card lists the license as mit.
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 dataset. The original Twitter-based RoBERTa m…
Downloads · 30 days
19
6% of all-time downloads
All-time downloads
305
Public
Parameters
125M
1.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
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 dataset. The original Twitter-based RoBERTa model can be found here.
"id2label": {
"0": "non-sensitive",
"1": "sensitive"
}
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}]
@article{antypas2024sensitive,
title={Sensitive Content Classification in Social Media: A Holistic Resource and Evaluation},
author={Antypas, Dimosthenis and Sen, Indira and Perez-Almendros, Carla and Camacho-Collados, Jose and Barbieri, Francesco},
journal={arXiv preprint arXiv:2411.19832},
year={2024}
}