Downloads · 30 days
0
sso5803/kluebert-mental-health-severity
kluebert-mental-health-severity is a text classification model from sso5803. Use it when you need a label for a piece of text. The card lists the license as other.
Three fine-tuned klue/bert-base models that each read a Korean counseling-dialogue transcript and output a severity score for one condition:
Downloads · 30 days
0
Access
Public
Updated Jul 20, 2026
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
Three fine-tuned klue/bert-base models that each read a Korean counseling-dialogue transcript and output a severity score for one condition:
| Subfolder | Condition (Korean) |
|---|---|
addiction/ | 중독 (addiction) |
anxiety/ | 불안 (anxiety) |
depression/ | 우울 (depression) |
Each model is a regression head on top of KLUE-BERT: it takes the [CLS] token's hidden state and outputs a single scalar, trained (via MSE loss) against a 0-3 integer severity label. Round and clip the raw output to [0, 3] to recover the discrete label used at training time.
Private / internal model. Trained on counseling-dialogue transcripts for a research project; not evaluated for clinical or diagnostic use. See "Limitations" below before using outputs for anything beyond research.
This is not a stock BertForSequenceClassification. The regression head reads the raw [CLS] hidden state directly (no BertPooler), so it needs the custom CustomBertForSequenceRegression class shipped in each subfolder (modeling_kluebert_regression.py). Load with trust_remote_code=True.
import torch
from transformers import AutoModel, AutoTokenizer
repo_id = "sso5803/kluebert-mental-health-severity"
condition = "depression" # or "addiction" / "anxiety"
model = AutoModel.from_pretrained(repo_id, subfolder=condition, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(repo_id, subfolder=condition)
model.eval()
text = "요즘 계속 잠도 안 오고 기운이 없어."
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
score = model(**inputs).item()
severity = min(max(round(score), 0), 3)
print(f"raw score: {score:.3f}, severity (0-3): {severity}")
klue/bert-baseaddiction, anxiety, depression) on transcripts labeled for that condition plus normal (non-condition) examples2e-5, batch size 16, weight decay 0.01kluebert_train.py, kluebert_run.py) are not included in this repo.addiction/anxiety/depression are not necessarily on a comparable scale.