Downloads · 30 days
71
1% of all-time downloads
cardiffnlp/twitter-xlm-roberta-base-hate-spanish
twitter-xlm-roberta-base-hate-spanish is a text classification model from cardiffnlp. Use it when you need a label for a piece of text. It is set up for transformers.
This model is a fine-tuned version of cardiffnlp/twitter-xlm-roberta-base using the HaterNet dataset and the Spanish subset of SemEval-2019 Task 5.
Downloads · 30 days
71
1% of all-time downloads
All-time downloads
7.7K
Public
Repo size
3.4 GB
Likes
0
Public
Click a slice to open those files.
.h51.1 GB · 50%
From the Hugging Face model README
This model is a fine-tuned version of cardiffnlp/twitter-xlm-roberta-base using the HaterNet dataset and the Spanish subset of
SemEval-2019 Task 5.
on the test split of SemEval-2019 Task 5
on custom test split of Haternet
on Haternet & SemEval-2019 Task 5
Install tweetnlp via pip.
pip install tweetnlp
Load the model in python.
import tweetnlp
model = tweetnlp.Classifier("cardiffnlp/twitter-xlm-roberta-base-hate-spanish")
model.predict('Ismael es egocentrico porque se vuelve loca si le dicen que tiene el pelo bonito😂😂😂😂 eso se define con otro objetivo #FirstDates251')
>> {'label': 'NOT-HATE'}
@inproceedings{basile-etal-2019-semeval, title = "{S}em{E}val-2019 Task 5: Multilingual Detection of Hate Speech Against Immigrants and Women in {T}witter", author = "Basile, Valerio and Bosco, Cristina and Fersini, Elisabetta and Nozza, Debora and Patti, Viviana and Rangel Pardo, Francisco Manuel and Rosso, Paolo and Sanguinetti, Manuela", booktitle = "Proceedings of the 13th International Workshop on Semantic Evaluation", month = jun, year = "2019", address = "Minneapolis, Minnesota, USA", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/S19-2007", doi = "10.18653/v1/S19-2007", pages = "54--63", }
@article{quijano2019haternet, title={HaterNet a system for detecting and analyzing hate speech in Twitter (Version 1.0)[Data set]}, author={Quijano-Sanchez, Lara and Kohatsu, Juan Carlos Pereira and Liberatore, Federico and Camacho-Collados, Miguel}, journal={Zenodo}, year={2019} }