gooohjy commited on
Commit
070651c
1 Parent(s): a34d6be

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -4
README.md CHANGED
@@ -1,10 +1,26 @@
1
  # Suicidal-BERT
 
 
 
2
  The model was trained on the [Suicide and Depression Dataset](https://www.kaggle.com/nikhileswarkomati/suicide-watch) obtained from Kaggle. The dataset was scraped from Reddit and consists of 232,074 rows equally distributed between 2 classes - suicide and non-suicide.
3
 
 
4
  The model fine-tuning was conducted on 1 epoch, with batch size of 6, and 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.
5
 
6
- For more information and to view the source codes, please refer to the GitHub repository [gohjiayi/suicidal-text-detection](https://github.com/gohjiayi/suicidal-text-detection/).
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
- ---
9
- license: mit
10
- ---
 
1
  # Suicidal-BERT
2
+ This text classification model predicts whether a sequence of words are suicidal (1) or non-suicidal (0).
3
+
4
+ ## Data
5
  The model was trained on the [Suicide and Depression Dataset](https://www.kaggle.com/nikhileswarkomati/suicide-watch) obtained from Kaggle. The dataset was scraped from Reddit and consists of 232,074 rows equally distributed between 2 classes - suicide and non-suicide.
6
 
7
+ ## Parameters
8
  The model fine-tuning was conducted on 1 epoch, with batch size of 6, and 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.
9
 
10
+ ## Performance
11
+ The model has achieved the following results after fine-tuning on the aforementioned dataset:
12
+ - Accuracy: 0.9757
13
+ - Recall: 0.9669
14
+ - Precision: 0.9701
15
+ - F1 Score: 0.9685
16
+
17
+ ## How to Use
18
+ Load the model via the transformers library:
19
+ ```
20
+ from transformers import AutoTokenizer, AutoModel
21
+ tokenizer = AutoTokenizer.from_pretrained("gooohjy/suicidal-bert")
22
+ model = AutoModel.from_pretrained("gooohjy/suicidal-bert")
23
+ ```
24
 
25
+ ## Resources
26
+ For more resources, including the source code, please refer to the GitHub repository [gohjiayi/suicidal-text-detection](https://github.com/gohjiayi/suicidal-text-detection/).