Downloads · 30 days
117
40% of all-time downloads
tojohere/goemotions-ko-xlm-roberta-base
goemotions-ko-xlm-roberta-base is a machine learning model from tojohere. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned xlm-roberta-base for 28-emotion classification on Korean text. Used in SentiLog for on-device journaling sentiment analysis.
Downloads · 30 days
117
40% of all-time downloads
All-time downloads
294
Public
Parameters
278M
2.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 79%
From the Hugging Face model README
Fine-tuned xlm-roberta-base for 28-emotion classification on Korean text. Used in SentiLog for on-device journaling sentiment analysis.
| Metric | v1 | v2 |
|---|---|---|
| F1 Macro (training) | 0.379 | 0.568 |
| 28×3 Top-1 | 67% | 68% |
| 28×3 Top-3 | 83% | 81% |
| Sanity Checks | 8/8 | 8/8 |
| Missed Emotions | 2/28 | 2/28 |
admiration, amusement, anger, annoyance, approval, caring, confusion, curiosity, desire, disappointment, disapproval, disgust, embarrassment, excitement, fear, gratitude, grief, joy, love, nervousness, optimism, pride, realization, relief, remorse, sadness, surprise, neutral
import onnxruntime as ort
from tokenizers import Tokenizer
session = ort.InferenceSession("goemotions.onnx")
tokenizer = Tokenizer.from_file("tokenizer.json")
encoding = tokenizer.encode("오늘 정말 행복해요")
import numpy as np
input_ids = np.array([encoding.ids], dtype=np.int64)
attention_mask = np.array([encoding.attention_mask], dtype=np.int64)
outputs = session.run(None, {"input_ids": input_ids, "attention_mask": attention_mask})