Upload BertForTokenClassification
Browse files- config.json +45 -23
- model.safetensors +2 -2
config.json
CHANGED
@@ -1,29 +1,51 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"initializer_range": 0.02,
|
13 |
-
"intermediate_size":
|
14 |
-
"
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
"use_cache": true,
|
28 |
-
"vocab_size":
|
29 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "deepset/gbert-base",
|
3 |
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-DIAGNOSIS",
|
14 |
+
"2": "I-DIAGNOSIS",
|
15 |
+
"3": "B-DIAGNOSTIC",
|
16 |
+
"4": "I-DIAGNOSTIC",
|
17 |
+
"5": "B-DRUG",
|
18 |
+
"6": "I-DRUG",
|
19 |
+
"7": "B-MEDICAL_FINDING",
|
20 |
+
"8": "I-MEDICAL_FINDING",
|
21 |
+
"9": "B-THERAPY",
|
22 |
+
"10": "I-THERAPY"
|
23 |
+
},
|
24 |
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"B-DIAGNOSIS": 1,
|
28 |
+
"B-DIAGNOSTIC": 3,
|
29 |
+
"B-DRUG": 5,
|
30 |
+
"B-MEDICAL_FINDING": 7,
|
31 |
+
"B-THERAPY": 9,
|
32 |
+
"I-DIAGNOSIS": 2,
|
33 |
+
"I-DIAGNOSTIC": 4,
|
34 |
+
"I-DRUG": 6,
|
35 |
+
"I-MEDICAL_FINDING": 8,
|
36 |
+
"I-THERAPY": 10,
|
37 |
+
"O": 0
|
38 |
+
},
|
39 |
+
"layer_norm_eps": 1e-12,
|
40 |
+
"max_position_embeddings": 512,
|
41 |
+
"model_type": "bert",
|
42 |
+
"num_attention_heads": 12,
|
43 |
+
"num_hidden_layers": 12,
|
44 |
+
"pad_token_id": 0,
|
45 |
+
"position_embedding_type": "absolute",
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.45.0.dev0",
|
48 |
+
"type_vocab_size": 2,
|
49 |
"use_cache": true,
|
50 |
+
"vocab_size": 31102
|
51 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d61883b6eebc3e16c0840e852ae5e1462d1b6f93cefc2de8672cb4465e2e87c6
|
3 |
+
size 437405532
|