Views
No views yet
monologg/koelectra-base-v3-discriminator,
not from a checkpoint already fine-tuned on sentiment.space/ folder and loads this model straight from
the Hub, but there is no hosted demo — Hugging Face requires a PRO
subscription to run Gradio Spaces, so the demo is local-only.| System | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
| Majority class | 49.68% [49.22, 50.15] | 0.00% | 0.00% | 0.00% |
| Character TF-IDF + logistic regression | 86.75% [86.45, 87.04] | 87.19% | 86.36% | 86.77% |
| Raw encoder + newly initialized head | 50.56% | 53.39% | 13.66% | 21.75% |
| Fine-tuned raw KoELECTRA | 90.47% [90.23, 90.73] | 89.30% | 92.11% | 90.68% |
evaluation_results.json.classifier.* weight is reported missing and newly initialized. No sentiment
head is inherited — the untrained-head row above is the empirical proof.1import torch
2from transformers import AutoModelForSequenceClassification, AutoTokenizer
3
4model_id = "cringepnh/koelectra-korean-sentiment"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForSequenceClassification.from_pretrained(model_id).eval()
7inputs = tokenizer("이 영화 정말 재미있어요!", return_tensors="pt", truncation=True)
8with torch.inference_mode():
9 probabilities = torch.softmax(model(**inputs).logits, dim=-1)[0]
10label = int(probabilities.argmax())
11print(model.config.id2label[label], float(probabilities[label]))