Downloads · 30 days
29
24% of all-time downloads
francesco-zatto/twitter-xlm-roberta-train-full-sexism-detector
twitter-xlm-roberta-train-full-sexism-detector is a text classification model from francesco-zatto. Use it when you need a label for a piece of text.
This model is a fine-tuned version of cardiffnlp/twitter-xlm-roberta-base, trained for multi-class sexism detection on the EXIST 2023 Task 2 dataset.
Downloads · 30 days
29
24% of all-time downloads
All-time downloads
119
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of cardiffnlp/twitter-xlm-roberta-base, trained for multi-class sexism detection on the EXIST 2023 Task 2 dataset.
bilingual_trainingThis repository contains the Multilingual/Bilingual variant of our study.
Categorizes tweets into one of four sexist intentions:
0. - (Non-sexist)
DIRECT (Directly sexist messages)JUDGEMENTAL (Messages condemning sexist behaviors)REPORTED (Messages reporting a sexist situation)Inputs must be preprocessed to match the CardiffNLP base model formatting:
@user) with the token @userhttpfrom transformers import AutoTokenizer, AutoModelForSequenceClassification
repo_id = "francesco-zatto/twitter-xlm-roberta-train-full-sexism-detector"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForSequenceClassification.from_pretrained(repo_id)
inputs = tokenizer("Your cleaned tweet text here", return_tensors="pt")
outputs = model(**inputs)