Views
No views yet
1>>> from transformers import pipeline
2>>> classifier = pipeline("text-classification", model="paulagarciaserrano/roberta-depression-detection")
3>>> your_text = "I am very sad."
4>>> classifier (your_text)| Class | Nº sentences | Avg. document length (in sentences) | Nº words | Avg. sentence length (in words) |
|---|---|---|---|---|
| not depression | 7,884 | 4 | 153,738 | 78 |
| moderate | 36,114 | 6 | 601,900 | 100 |
| severe | 9,911 | 11 | 126,140 | 140 |
| Class | Nº sentences | Avg. document length (in sentences) | Nº words | Avg. sentence length (in words) |
|---|---|---|---|---|
| not depression | 3,660 | 2 | 10,980 | 6 |
| moderate | 66,874 | 29 | 804,794 | 349 |
| severe | 2,880 | 8 | 75,240 | 209 |