marquesafonso
commited on
Commit
•
5023860
1
Parent(s):
6d9c7d6
fix model architecture
Browse files- config.json +28 -1
config.json
CHANGED
@@ -1,14 +1,41 @@
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
-
"
|
4 |
],
|
5 |
"attention_probs_dropout_prob": 0.1,
|
6 |
"directionality": "bidi",
|
7 |
"hidden_act": "gelu",
|
8 |
"hidden_dropout_prob": 0.1,
|
9 |
"hidden_size": 1024,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 4096,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"layer_norm_eps": 1e-12,
|
13 |
"max_position_embeddings": 512,
|
14 |
"model_type": "bert",
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "neuralmind/bert-large-portuguese-cased",
|
3 |
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"directionality": "bidi",
|
8 |
"hidden_act": "gelu",
|
9 |
"hidden_dropout_prob": 0.1,
|
10 |
"hidden_size": 1024,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-PESSOA",
|
14 |
+
"2": "I-PESSOA",
|
15 |
+
"3": "B-ORGANIZACAO",
|
16 |
+
"4": "I-ORGANIZACAO",
|
17 |
+
"5": "B-LOCAL",
|
18 |
+
"6": "I-LOCAL",
|
19 |
+
"7": "B-TEMPO",
|
20 |
+
"8": "I-TEMPO",
|
21 |
+
"9": "B-VALOR",
|
22 |
+
"10": "I-VALOR"
|
23 |
+
},
|
24 |
"initializer_range": 0.02,
|
25 |
"intermediate_size": 4096,
|
26 |
+
"label2id": {
|
27 |
+
"B-LOCAL": 5,
|
28 |
+
"B-ORGANIZACAO": 3,
|
29 |
+
"B-PESSOA": 1,
|
30 |
+
"B-TEMPO": 7,
|
31 |
+
"B-VALOR": 9,
|
32 |
+
"I-LOCAL": 6,
|
33 |
+
"I-ORGANIZACAO": 4,
|
34 |
+
"I-PESSOA": 2,
|
35 |
+
"I-TEMPO": 8,
|
36 |
+
"I-VALOR": 10,
|
37 |
+
"O": 0
|
38 |
+
},
|
39 |
"layer_norm_eps": 1e-12,
|
40 |
"max_position_embeddings": 512,
|
41 |
"model_type": "bert",
|