Instructions to use paulagarciaserrano/roberta-depression-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use paulagarciaserrano/roberta-depression-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="paulagarciaserrano/roberta-depression-detection")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("paulagarciaserrano/roberta-depression-detection") model = AutoModelForSequenceClassification.from_pretrained("paulagarciaserrano/roberta-depression-detection") - Notebooks
- Google Colab
- Kaggle
Commit ·
75751e2
1
Parent(s): 01557a5
Update config.json
Browse files- config.json +3 -3
config.json
CHANGED
|
@@ -19,9 +19,9 @@
|
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"intermediate_size": 3072,
|
| 21 |
"label2id": {
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
},
|
| 26 |
"layer_norm_eps": 1e-05,
|
| 27 |
"max_position_embeddings": 514,
|
|
|
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"intermediate_size": 3072,
|
| 21 |
"label2id": {
|
| 22 |
+
"not depression": 0,
|
| 23 |
+
"moderate": 1,
|
| 24 |
+
"severe": 2
|
| 25 |
},
|
| 26 |
"layer_norm_eps": 1e-05,
|
| 27 |
"max_position_embeddings": 514,
|