Text Classification
Transformers
Safetensors
English
distilbert
mental-health
therapy
chatbot
text-embeddings-inference
Instructions to use YureiYuri/empathy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YureiYuri/empathy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="YureiYuri/empathy")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("YureiYuri/empathy") model = AutoModelForSequenceClassification.from_pretrained("YureiYuri/empathy", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_map.json from YureiYuri/empathy: direct link, hf CLI and curl.
- Browser
- Download file 198 Bytes
-
https://huggingface.co/YureiYuri/empathy/resolve/main/label_map.json
- Command line
-
hf download hf://YureiYuri/empathy/label_map.json
-
curl -L -o label_map.json https://huggingface.co/YureiYuri/empathy/resolve/main/label_map.json
198 Bytes
| { | |
| "anger": 0, | |
| "anxiety": 1, | |
| "depression": 2, | |
| "family": 3, | |
| "general_support": 4, | |
| "grief": 5, | |
| "relationship": 6, | |
| "self_esteem": 7, | |
| "sleep_issues": 8, | |
| "suicide": 9, | |
| "trauma": 10 | |
| } |