Text Classification
Transformers
Safetensors
English
roberta
sentiment-analysis
twitter
political-communication
uk-election
text-embeddings-inference
Instructions to use anonymousjqd/uk-campaign-sentiment-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anonymousjqd/uk-campaign-sentiment-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="anonymousjqd/uk-campaign-sentiment-roberta")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("anonymousjqd/uk-campaign-sentiment-roberta") model = AutoModelForSequenceClassification.from_pretrained("anonymousjqd/uk-campaign-sentiment-roberta") - Notebooks
- Google Colab
- Kaggle
UK Campaign Sentiment RoBERTa
This model is a fine-tuned version of cardiffnlp/twitter-roberta-base-sentiment for sentiment classification of tweets posted by UK general election candidates in the 2024 campaign period. It is part of a broader project introducing a multimodal dataset of campaign content, including text, images, and video.
Model Details
- Developed by: [anonymised]
- Model type: RoBERTa-base (fine-tuned)
- Language: English
- Fine-tuned from:
cardiffnlp/twitter-roberta-base-sentiment - License: MIT
Training Details
- Training data: Manually annotated tweets from 2024 UK election candidates.
- Classes: Negative (−1), Neutral (0), Positive (1)
- Training period: 4 epochs with learning rate 2e−5 and batch size 8
Uses
This model is intended for sentiment analysis of political tweets, especially campaign-related content during UK elections. It can be applied to study negativity, campaign tone, or partisan differences in emotional framing.
Limitations
- The original model achieved approximately 72% accuracy on a manually annotated validation set, with strongest performance on neutral tweets.
- While this version has been fine-tuned on UK election campaign tweets, it may not generalize well to other domains or more informal, non-political language.
- Downloads last month
- 1
Model tree for anonymousjqd/uk-campaign-sentiment-roberta
Base model
cardiffnlp/twitter-roberta-base-sentiment