vibhorag101
commited on
Commit
•
37c5e21
1
Parent(s):
5b69f6b
Update README.md
Browse files
README.md
CHANGED
@@ -34,9 +34,6 @@ language:
|
|
34 |
library_name: transformers
|
35 |
---
|
36 |
|
37 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
38 |
-
should probably proofread and complete it, then remove this comment. -->
|
39 |
-
|
40 |
# roberta-base-suicide-prediction-phr
|
41 |
|
42 |
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on a Suicide Prediction dataset sourced from Reddit.
|
@@ -48,15 +45,24 @@ It achieves the following results on the evaluation/validation set:
|
|
48 |
- F1: {'f1': 0.9651921995935487}
|
49 |
|
50 |
## Model description
|
51 |
-
|
52 |
-
More information needed
|
53 |
|
54 |
## Training and evaluation data
|
55 |
-
The dataset is sourced from Reddit and is available on [Kaggle](https://www.kaggle.com/datasets/nikhileswarkomati/suicide-watch).
|
56 |
-
The dataset
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
## Training procedure
|
|
|
60 |
|
61 |
### Training hyperparameters
|
62 |
|
|
|
34 |
library_name: transformers
|
35 |
---
|
36 |
|
|
|
|
|
|
|
37 |
# roberta-base-suicide-prediction-phr
|
38 |
|
39 |
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on a Suicide Prediction dataset sourced from Reddit.
|
|
|
45 |
- F1: {'f1': 0.9651921995935487}
|
46 |
|
47 |
## Model description
|
48 |
+
This model is a finetune of roberta-base to detect suicidal tendencies in a given text.
|
|
|
49 |
|
50 |
## Training and evaluation data
|
51 |
+
- The dataset is sourced from Reddit and is available on [Kaggle](https://www.kaggle.com/datasets/nikhileswarkomati/suicide-watch).
|
52 |
+
- The dataset was cleaned and following steps were applied
|
53 |
+
- Converted to lowercase
|
54 |
+
- Removed numbers and special characters.
|
55 |
+
- Removed URLs, Emojis and accented characters.
|
56 |
+
- Removed any word contractions.
|
57 |
+
- Remove any extra white spaces and any extra spaces after a single space.
|
58 |
+
- Removed any consecutive characters repeated more than 3 times.
|
59 |
+
- Tokenised the text, then lemmatized it and then removed the stopwords (excluding not).
|
60 |
+
- The cleaned dataset can be found [here](https://huggingface.co/datasets/vibhorag101/suicide_prediction_dataset_phr)
|
61 |
+
- The dataset contains text with binary labels for suicide or non-suicide.
|
62 |
+
- The evaluation set had ~23000 samples, while the training set had ~186k samples, i.e. a 80:10:10 (train:test:val) split.
|
63 |
|
64 |
## Training procedure
|
65 |
+
- The model was trained on an RTXA5000 GPU.
|
66 |
|
67 |
### Training hyperparameters
|
68 |
|