Downloads · 30 days
6
1% of all-time downloads
atti433/minde-urgency
minde-urgency is a text classification model from atti433. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as other.
한국 공공 민원의 긴급 여부(이진)를 판정하는 KLUE BERT 기반 모델.
Downloads · 30 days
6
1% of all-time downloads
All-time downloads
635
Public
Parameters
111M
443 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors443 MB · 100%
From the Hugging Face model README
한국 공공 민원의 **긴급 여부(이진)**를 판정하는 KLUE BERT 기반 모델.
용도: 분류기와 함께 사용. is_urgent=True면 119/112/안전신문고 우선 안내 권장.
Test set (86,778건)
긴급 키워드 30개 매칭 + 예외룰 적용:
klue/bert-basefrom transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("atti433/minde-urgency")
model = AutoModelForSequenceClassification.from_pretrained("atti433/minde-urgency")
text = "아파트에서 가스누출이 발생했습니다 위험합니다"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)
is_urgent = bool(probs[0, 1] > 0.5)
print(is_urgent, probs[0, 1].item())
또는 본 프로젝트의 chatbot_service.check_urgency() 사용 (DB 키워드 + 예외룰 자동 적용).