Downloads · 30 days
17
14% of all-time downloads
kjy8402/untold-2d-emotion-model
untold-2d-emotion-model is a text classification model from kjy8402. Use it when you need a label for a piece of text. The card lists the license as mit.
이 모델은 Russell의 감정 모델을 기반으로 한 2차원 감정 분석 모델입니다.
Downloads · 30 days
17
14% of all-time downloads
All-time downloads
125
Public
Parameters
560M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
이 모델은 Russell의 감정 모델을 기반으로 한 2차원 감정 분석 모델입니다.
from transformers import AutoTokenizer, AutoModel
import torch
# 모델과 토크나이저 로드
tokenizer = AutoTokenizer.from_pretrained("kjy8402/untold-2d-emotion-model")
base_model = AutoModel.from_pretrained("intfloat/multilingual-e5-large-instruct")
# EmotionRegressor 클래스 정의 필요 (GitHub 참조)
# model = EmotionRegressor(base_model)
# model.load_state_dict(torch.load("model.safetensors"))
# 감정 분석
text = "오늘 정말 기분이 좋아요!"
# result = analyze_sentiment(text)
# {"valence": 0.25, "arousal": 0.34, "emotion_label": "excited"}
{
"valence": float, // -1(부정) ~ 1(긍정)
"arousal": float, // -1(낮은 각성) ~ 1(높은 각성)
"emotion_label": str, // Russell 모델 기반 감정 레이블
"confidence": float // 예측 신뢰도
}
전체 코드: UnTold Repository