Downloads · 30 days
4
8% of all-time downloads
manuelraileanu/ro-political-leaning-v2
ro-political-leaning-v2 is a text classification model from manuelraileanu. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Fine-tuned dumitrescustefan/bert-base-romanian-cased-v1 for Romanian political leaning scoring (v2).
Downloads · 30 days
4
8% of all-time downloads
All-time downloads
48
Public
Parameters
124M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
Fine-tuned dumitrescustefan/bert-base-romanian-cased-v1 for Romanian political leaning scoring (v2).
Unlike v1 (manuelraileanu/ro-political-leaning, 6-class classification on XLM-RoBERTa),
this model uses a single regression head that directly outputs a leaning score on the
-1.0 .. +1.0 axis (v2 labeling pipeline, gemma2:9b labels, extended training set).
All 7 political classes are present (far_left is no longer merged into left).
A single regression value in [-1.0, +1.0], the midpoint of the predicted leaning class:
| score | leaning |
|---|---|
| -1.0 | far_left |
| -0.6 | left |
| -0.3 | center_left |
| 0.0 | center |
| +0.3 | center_right |
| +0.6 | right |
| +1.0 | far_right |
dumitrescustefan/bert-base-romanian-cased-v1gemma2:9b (local, via Ollama), rows without a clear stance (unclear) excludedpetrematei/ro-political + readerbench/news-ro-offensemae (patience=2)| source | link |
|---|---|
| ro-political (~120k social-media texts about the 2024-2025 RO presidential elections) | petrematei/ro-political |
| news-ro-offense (Romanian reader comments on news articles) | readerbench/news-ro-offense |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
model_id = "manuelraileanu/ro-political-leaning-v2"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id).eval()
inputs = tok("Guvernul a anunțat ieri noi măsuri de stimulare economică.", return_tensors="pt")
with torch.no_grad():
score = model(**inputs).logits.reshape(-1)[0].item() # -1.0 (far left) .. +1.0 (far right)