Downloads · 30 days
22
14% of all-time downloads
GateNLP/stance-twitter-xlm-multilingual
stance-twitter-xlm-multilingual is a text classification model from GateNLP. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is for stance classification on source-reply tweet pairs from Twitter/X. It was fine-tuned on the training split of RumourEval2019 alongside synthetic tweets generated by deepseek-ai/DeepSeek-R1-Distill-Qwe…
Downloads · 30 days
22
14% of all-time downloads
All-time downloads
155
Public
Parameters
560M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
This model is for stance classification on source-reply tweet pairs from Twitter/X. It was fine-tuned on the training split of RumourEval2019 alongside synthetic tweets generated by deepseek-ai/DeepSeek-R1-Distill-Qwen-14B The starting point for fine-tuning was cardiffnlp/twitter-xlm-roberta-large-2022.
The synthetic data was generated in Czech, English, Spanish, French, Hindi, and Portuguese.
model_path = "GateNLP/stance-twitter-xlm-multilingual"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSequenceClassification.from_pretrained(model_path, num_labels=4)
source_tweet = "The Golden State Fence Company, hired to build part of the US-Mexico border wall, was fined $5 million for hiring illegal immigrant workers."
reply_tweet = "@USER When did this happen?"
inputs = tokenizer(text=tweet, text_pair=reply_tweet, return_tensors="pt")
outputs = model(**inputs)
labels = ["support", "deny", "query", "comment"]
prediction = labels[outputs.logits.argmax()]