Views
No views yet
| Label | Meaning |
|---|---|
TASK_1 | CBT / academic stress |
TASK_2 | Crisis / self-harm signal |
TASK_3 | Out-of-scope |
data/guardrail_dataset_clean.jsonl, which
merges the original guardrail data with curated hard cases for CBT/Crisis
boundaries, Vietnamese text, pills/overdose language, and OOS work/mental
health informational prompts.TASK_2 when:P(TASK_2) >= 0.10data/evaluation_test_data.json, 60 samples):| Mode | Accuracy | TASK_2 Precision | TASK_2 Recall | TASK_2 F1 |
|---|---|---|---|---|
| Argmax only | 0.9667 | 1.0000 | 0.9048 | 0.9500 |
Tuned P(TASK_2) >= 0.10 | 0.9833 | 0.9545 | 1.0000 | 0.9767 |
reports/guardrail_threshold_sweep.csvreports/guardrail_threshold_sweep.png1from transformers import pipeline
2
3classifier = pipeline(
4 "text-classification",
5 model="Nhatminh1234/ReframeBot-Guardrail-DistilBERT",
6 revision="v2-guardrail-clean",
7)
8
9classifier("I'm stressed about my final exam")classifier("I bought pills to overdose", top_k=None)