dariolopez
commited on
Commit
·
3f1f1fa
1
Parent(s):
81b0e90
Update README.md
Browse files
README.md
CHANGED
@@ -4,6 +4,8 @@ language:
|
|
4 |
metrics:
|
5 |
- f1
|
6 |
pipeline_tag: text-classification
|
|
|
|
|
7 |
---
|
8 |
|
9 |
|
@@ -14,15 +16,15 @@ This model is a fine-tuned version of [PlanTL-GOB-ES/roberta-base-bne](https://h
|
|
14 |
# How to use
|
15 |
|
16 |
```python
|
17 |
-
from transformers import pipeline
|
18 |
|
19 |
|
20 |
-
model_name= 'dariolopez/roberta-base-bne-finetuned-suicide-es'
|
21 |
-
pipe = pipeline("text-classification", model=model_name
|
22 |
|
23 |
-
pipe("Quiero acabar con todo. No merece la pena vivir.")
|
24 |
[{'label': 'Suicide', 'score': 0.9999703168869019}]
|
25 |
|
26 |
-
pipe("El partido de fútbol fue igualado, disfrutamos mucho jugando juntos.")
|
27 |
[{'label': 'Non-Suicide', 'score': 0.999990701675415}]
|
28 |
```
|
|
|
4 |
metrics:
|
5 |
- f1
|
6 |
pipeline_tag: text-classification
|
7 |
+
datasets:
|
8 |
+
- dariolopez/suicide-comments-es
|
9 |
---
|
10 |
|
11 |
|
|
|
16 |
# How to use
|
17 |
|
18 |
```python
|
19 |
+
>>> from transformers import pipeline
|
20 |
|
21 |
|
22 |
+
>>> model_name= 'dariolopez/roberta-base-bne-finetuned-suicide-es'
|
23 |
+
>>> pipe = pipeline("text-classification", model=model_name)
|
24 |
|
25 |
+
>>> pipe("Quiero acabar con todo. No merece la pena vivir.")
|
26 |
[{'label': 'Suicide', 'score': 0.9999703168869019}]
|
27 |
|
28 |
+
>>> pipe("El partido de fútbol fue igualado, disfrutamos mucho jugando juntos.")
|
29 |
[{'label': 'Non-Suicide', 'score': 0.999990701675415}]
|
30 |
```
|