File size: 1,171 Bytes
c227254
 
 
7329a48
 
 
 
acdb3d1
7329a48
 
acdb3d1
7329a48
 
 
 
 
 
 
 
 
 
 
 
 
b1d81fb
7329a48
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
license: afl-3.0
---
# Suicidal
This text categorization model can predict if a word sequence is suicidal (1) or not (0).

## Data
The model was trained on the [Suicide and Depression Dataset](https://www.kaggle.com/) obtained from Kaggle. The dataset was taken from Reddit and contains 232,074 data divided into two categories: suicide and non-suicide.

## Parameters
The model fine-tuning was conducted on 1 epoch, with a batch size of 6, and a learning rate of 0.00001. Due to limited computing resources and time, we were unable to scale up the number of epochs and batch size.

## Performance
Following fine-tuning on the mentioned dataset, the model generated the subsequent results:
- Accuracy: 0.9792
- Recall: 0.9788
- Precision: 0.9677
- F1 Score: 0.9732

## How to Use
Import the model from the transformers library:
```
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("Aryan4/suicidal")
model = AutoModel.from_pretrained("Aryan4/suicidal")
```

## Resources
For more resources, including the source code, please refer to the GitHub repository [Aryanstha/suicidal-text-detection](https://github.com/Aryanstha/).