Feature Extraction
Transformers
Safetensors
bert
mental-health
multi-label
mental-bert-base-uncased
text-embeddings-inference
Instructions to use mahir2021/mental-bert-depemo2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mahir2021/mental-bert-depemo2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mahir2021/mental-bert-depemo2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("mahir2021/mental-bert-depemo2") model = AutoModel.from_pretrained("mahir2021/mental-bert-depemo2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download emotion_mapping.json from mahir2021/mental-bert-depemo2: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/mahir2021/mental-bert-depemo2/resolve/main/emotion_mapping.json
- Command line
-
hf download hf://mahir2021/mental-bert-depemo2/emotion_mapping.json
-
curl -L -o emotion_mapping.json https://huggingface.co/mahir2021/mental-bert-depemo2/resolve/main/emotion_mapping.json
638 Bytes
| { | |
| "emotion2idx": { | |
| "anger": 0, | |
| "brain dysfunction (forget)": 1, | |
| "emptiness": 2, | |
| "hopelessness": 3, | |
| "loneliness": 4, | |
| "sadness": 5, | |
| "suicide intent": 6, | |
| "worthlessness": 7 | |
| }, | |
| "idx2emotion": { | |
| "0": "anger", | |
| "1": "brain dysfunction (forget)", | |
| "2": "emptiness", | |
| "3": "hopelessness", | |
| "4": "loneliness", | |
| "5": "sadness", | |
| "6": "suicide intent", | |
| "7": "worthlessness" | |
| }, | |
| "num_labels": 8, | |
| "emotions_sorted": [ | |
| "anger", | |
| "brain dysfunction (forget)", | |
| "emptiness", | |
| "hopelessness", | |
| "loneliness", | |
| "sadness", | |
| "suicide intent", | |
| "worthlessness" | |
| ] | |
| } |