Views
No views yet
0: 부정1: 중립2: 긍정snunlp/KR-FinBERT-SC| 감정 클래스 | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| 부정 | 0.89 | 1.00 | 0.94 | 17 |
| 중립 | 1.00 | 0.82 | 0.90 | 11 |
| 긍정 | 0.93 | 0.93 | 0.93 | 14 |
| 정확도 | 0.93 | 42 |
전체 정확도: 93%
Macro F1-score: 0.92
1from transformers import pipeline
2
3pipe = pipeline("text-classification", model="DataWizardd/finbert-sentiment-ko")
4
5pipe("환율이 급등하며 시장 불안이 커지고 있다.")
6# 출력: [{'label': '부정', 'score': 0.95}]