Text Classification
Transformers
Safetensors
English
distilbert
medical
code
mental_health
classifier
text-embeddings-inference
Instructions to use YureiYuri/empathist with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YureiYuri/empathist with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="YureiYuri/empathist")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("YureiYuri/empathist") model = AutoModelForSequenceClassification.from_pretrained("YureiYuri/empathist", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_config.json from YureiYuri/empathist: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/YureiYuri/empathist/resolve/main/label_config.json
- Command line
-
hf download hf://YureiYuri/empathist/label_config.json
-
curl -L -o label_config.json https://huggingface.co/YureiYuri/empathist/resolve/main/label_config.json
441 Bytes
| { | |
| "label2id": { | |
| "overgeneralization": 0, | |
| "catastrophizing": 1, | |
| "black_and_white": 2, | |
| "self_blame": 3, | |
| "mind_reading": 4 | |
| }, | |
| "id2label": { | |
| "0": "overgeneralization", | |
| "1": "catastrophizing", | |
| "2": "black_and_white", | |
| "3": "self_blame", | |
| "4": "mind_reading" | |
| }, | |
| "distortion_labels": [ | |
| "overgeneralization", | |
| "catastrophizing", | |
| "black_and_white", | |
| "self_blame", | |
| "mind_reading" | |
| ] | |
| } |