Downloads · 30 days
260
66% of all-time downloads
mljn/policy-vs-other-v2
policy-vs-other-v2 is a text classification model from mljn. Use it when you need a label for a piece of text.
A fine-tuned version of xlm-roberta-base that classifies whether a social media post by a political party is about a policy issue or not.
Downloads · 30 days
260
66% of all-time downloads
All-time downloads
394
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
A fine-tuned version of xlm-roberta-base that classifies whether a social media post by a political party is about a policy issue or not.
It was developed for PartySOME, a comparative dataset of European parties' social media activity, as the first step of a two-step issue classification. Many party posts have no policy content (campaign events, rallies, greetings, personal content), but issue classifiers such as the Comparative Agendas Project (CAP) models assign a topic to every text. Filtering out non-policy posts first, then classifying the remaining ones with a CAP model, reduces this noise.
policy issue: the post addresses a policy issueother: it does not5,895 manually annotated posts from parties' Facebook, Instagram and Twitter accounts in 18 European countries (Austria, Belgium, Czechia, Denmark, Finland, France, Germany, Hungary, Ireland, Italy, the Netherlands, Norway, Poland, Portugal, Spain, Sweden, Switzerland and the United Kingdom), in their original languages. The annotation criteria are described in the supplementary material of the PartySOME paper (Section B.1).
The posts were split into training (4,422), validation (589) and test (884) sets, stratified by country.
from transformers import pipeline
classifier = pipeline("text-classification", model="mljn/policy-vs-other-v2", truncation=True)
classifier("The new government policy on taxation was announced today.")
In PartySOME, posts predicted as policy issue are then classified into CAP topics with poltextlab/xlm-roberta-large-pooled-cap-v4.
Results on the held-out test set (884 posts), with policy issue as the positive class:
| Metric | Value |
|---|---|
| Accuracy | 0.893 |
| Precision | 0.905 |
| Recall | 0.914 |
| F1 | 0.910 |
By platform:
| Platform | Posts | Accuracy | F1 |
|---|---|---|---|
| 304 | 0.891 | 0.919 | |
| 282 | 0.908 | 0.927 | |
| 298 | 0.879 | 0.875 |
By country, F1 ranges from 0.77 (Italy) to 0.98 (Denmark), on about 49 test posts per country.
If you use this model, please cite:
Jan, Malo, and Luis Sattelmayer. "Issue Competition on Social Media: A New Comparative Dataset on Parties' Issue Agendas." SocArXiv. https://osf.io/preprints/socarxiv/x47qr_v1