加载中…
加载中…
This model is a fine-tuned version of monologg/koelectra-base-v3-discriminator on the custom-intent-dataset dataset. It achieves the following results on the evaluation set:
kakao1513/koelectra_intent_modelmonologg/koelectra-base-v3-discriminator이 모델은 사용자의 의도를 분류하기 위해 KoELECTRA 모델을 한국어 의도 분류 데이터셋으로 미세 조정(fine-tuning)한 것입니다. 쇼핑몰, 회원가입, 로그인 등 웹 애플리케이션의 사용자 행동 의도를 35개의 클래스로 분류합니다.
| 항목 | 값 |
|---|---|
| 총 데이터 수 | 7,084 |
| 훈련 데이터 | 5,698 (80%) |
| 테스트 데이터 | 1,386 (20%) |
| 의도 클래스 수 | 35개 |
| 의도 | 설명 | 샘플 수 |
|---|---|---|
unknown |
무관/일상잡담 | 748 |
go_mall |
쇼핑몰로 이동 | 220 |
go_coupang |
쿠팡으로 이동 | 220 |
click_login |
로그인 | 220 |
click_signup |
회원가입 클릭 | 220 |
| ... | 그 외 30개 의도 | - |
학습률: 2e-5
배치 크기: 32
에포크: 5
최대 시퀀스 길이: 64
가중치 감소: 0.01
라벨 스무딩: 0.1
옵티마이저: AdamW
| Epoch | Validation Loss | Accuracy | F1 Score |
|---|---|---|---|
| 1 | 2.651761 | 71.63% | 0.6689 |
| 2 | 1.768677 | 92.35% | 0.9065 |
| 3 | 1.241083 | 97.99% | 0.9797 |
| 4 | 0.999594 | 98.91% | 0.9890 |
| 5 | 0.936003 | 98.85% | 0.9884 |
최종 성능 (테스트 셋)
pip install transformers torch
from transformers import pipeline
# 모델 로드
classifier = pipeline("text-classification",
model="smj1513/intent-classifier-koElectra-finetuned")
# 예측 실행
text = "쇼핑몰 사이트로 이동 할까 말까 할게"
result = classifier(text)[0]
print(f"의도: {result['label']}")
print(f"확신도: {result['score']:.4f}")
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# 모델 및 토크나이저 로드
model_name = "smj1513/intent-classifier-koElectra-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# 텍스트 전처리
text = "로그인 페이지로 가줘"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=64)
# 예측
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class_id = logits.argmax().item()
confidence = torch.softmax(logits, dim=-1)[0][predicted_class_id].item()
print(f"예측 클래스: {model.config.id2label[predicted_class_id]}")
print(f"신뢰도: {confidence:.4f}")
✅ 높은 정확도: 98.85%의 테스트 정확도로 매우 우수한 성능
✅ 균형잡힌 F1 점수: 0.9884의 F1 점수로 정밀도와 재현율의 균형 유지
✅ 빠른 추론: GPU에서 약 94개/초의 처리 속도
✅ 한국어 특화: KoELECTRA를 사용한 효율적인 한국어 처리
⚠️ 도메인 특화: 쇼핑몰/회원관리 도메인에 최적화되어 있음
⚠️ 토큰 길이 제한: 최대 64 토큰으로 제한 (긴 문장은 활용 제한적)
⚠️ 미지 의도: unknown 클래스로 분류되는 일상 잡담이 포함됨
이 모델을 사용하는 경우 다음과 같이 인용해주세요:
@misc{intent-classifier-koelectra,
author = {Your Name},
title = {Intent Classifier KoELECTRA Fine-tuned},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/smj1513/intent-classifier-koElectra-finetuned}
}
문제가 발생하거나 피드백이 있으시면 Hugging Face 모델 페이지에서 Issues를 제출해주세요.
마지막 업데이트: 2026년 2월 11일