hibbanz/cognitive-distortion-indobert
0
Cognitive Distortion Classification
This Space serves a two-stage Indonesian cognitive distortion classification pipeline trained with IndoBERT.
Required folder structure
Place the Kaggle export folder in the Space root:
.
├── app.py
├── requirements.txt
└── exported_model/
├── binary_model/
├── multiclass_model/
├── tokenizer/
├── threshold_config.json
├── metrics_summary.json
├── training_config.json
├── label_mapping.json
├── id2label.json
└── label2id.jsonThe two required model files are:
exported_model/binary_model/model.safetensors
exported_model/multiclass_model/model.safetensorsPipeline
- Stage 1: binary detection,
No DistortionvsDistortion. - Stage 2: multiclass classification, only executed when Stage 1 predicts
Distortion.
The binary decision uses the threshold saved in:
exported_model/threshold_config.jsonDeployment notes
For large model files, use Git LFS or the Hugging Face web uploader. The .gitattributes file in this package marks *.safetensors as large files.
This application is a text classification demo. It is not a psychological diagnosis tool.
