lisaterumi commited on
Commit
e8124d5
1 Parent(s): 51cbbdb

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: "pt"
3
+ widget:
4
+ - text: "Dispneia importante aos esforços + dor tipo peso no peito no esforço."
5
+ - text: "Obeso, has, icc c # cintilografia miocardica para avaliar angina. Discreto edema mmii pricn a esquerda."
6
+ - text: "Plastia Mitral ( Insuficiencia ), CRM Saf-2Mg e e Saf-3MG ).(09/03/16). Nega palpitação."
7
+ - text: "Uso: AAS 100 -1xd; Metoprolol 25 -1xd; FSM -1xd ; Levotiroxina 175 -1xd; Sinva 40 -1xd; Fluoxetina 20-1xd."
8
+ - text: "Refere melhora da dispneia depois da cx porem mantem aos mdoeardos-leves esforço."
9
+
10
+ datasets:
11
+ - TempClinBr
12
+ ---
13
+
14
+ # Portuguese NER- TempClinBr - BioBERTpt(clin)
15
+
16
+ Treinado com BioBERTpt(clin), com o corpus TempClinBr.
17
+
18
+ Metricas:
19
+
20
+ ```
21
+ precision recall f1-score support
22
+
23
+ 0 1.00 0.85 0.92 33
24
+ 1 0.73 0.69 0.71 78
25
+ 2 0.75 0.55 0.63 11
26
+ 3 0.70 0.70 0.70 10
27
+ 4 0.90 1.00 0.95 71
28
+ 5 0.75 0.90 0.82 503
29
+ 6 0.83 0.90 0.87 112
30
+ 7 0.93 0.90 0.92 2236
31
+ 8 0.78 0.50 0.61 28
32
+ 9 0.82 0.84 0.83 291
33
+ 10 0.79 0.96 0.87 124
34
+ 11 0.82 0.73 0.77 420
35
+
36
+ accuracy 0.87 3917
37
+ macro avg 0.82 0.79 0.80 3917
38
+ weighted avg 0.88 0.87 0.87 3917
39
+
40
+ ```
41
+
42
+ Parâmetros:
43
+
44
+ ```
45
+ device = cuda (Colab)
46
+ nclasses = len(tag2id)
47
+ nepochs = 50 => parou na 16
48
+ batch_size = 16
49
+ batch_status = 32
50
+ learning_rate = 3e-5
51
+
52
+ early_stop = 5
53
+ max_length = 256
54
+ write_path = 'model'
55
+ ```
56
+
57
+ Eval no conjunto de teste - TempClinBr
58
+ OBS: Avaliação com tag "O" (label 7), se necessário fazer a média sem essa tag.
59
+
60
+ ```
61
+ tag2id ={'<pad>': 12,
62
+ 'B-DepartamentoClinico': 2,
63
+ 'B-Evidencia': 4,
64
+ 'B-Ocorrencia': 10,
65
+ 'B-Problema': 5,
66
+ 'B-Teste': 6,
67
+ 'B-Tratamento': 9,
68
+ 'I-DepartamentoClinico': 3,
69
+ 'I-Ocorrencia': 8,
70
+ 'I-Problema': 11,
71
+ 'I-Teste': 0,
72
+ 'I-Tratamento': 1,
73
+ 'O': 7}
74
+
75
+ precision recall f1-score support
76
+
77
+ 0 0.70 0.30 0.42 99
78
+ 1 0.84 0.75 0.79 146
79
+ 2 1.00 0.90 0.95 30
80
+ 3 0.93 0.93 0.93 14
81
+ 4 1.00 0.95 0.98 128
82
+ 5 0.83 0.97 0.89 713
83
+ 6 0.80 0.80 0.80 194
84
+ 7 0.93 0.93 0.93 2431
85
+ 8 0.56 0.20 0.29 51
86
+ 9 0.86 0.85 0.85 261
87
+ 10 0.77 0.88 0.82 146
88
+ 11 0.85 0.82 0.83 645
89
+ 12 0.00 0.00 0.00 0
90
+
91
+ accuracy 0.88 4858
92
+ macro avg 0.77 0.71 0.73 4858
93
+ weighted avg 0.88 0.88 0.88 4858
94
+ ```
95
+
96
+
97
+ Como citar: **em breve**