Postlyt commited on
Commit
db356e3
·
verified ·
1 Parent(s): 34d0861

Upload 7 files

Browse files

Adding unziped files

README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BioBBC BiLSTM-CRF (epoch 3)
2
+
3
+ This checkpoint contains:
4
+ - `pytorch_model.bin`: state dict for the **EmbeddingFusion → BiLSTM → Linear → CRF** model
5
+ - `embedding_config.json`: hyperparams for embedder/backbone
6
+ - `id2label.json`, `pos2id.json`, `char_vocab.json`
7
+ - `tokenizer/` (if provided)
8
+
9
+ **Base encoder:** microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract
10
+ **Labels:** 3 classes
11
+ **Notes:** Requires Flair `TransformerWordEmbeddings` with the same base model for word-level flair features.
12
+
char_vocab.json ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<PAD>": 0,
3
+ "C": 1,
4
+ "h": 2,
5
+ "a": 3,
6
+ "n": 4,
7
+ "g": 5,
8
+ "e": 6,
9
+ "i": 7,
10
+ "s": 8,
11
+ "p": 9,
12
+ "o": 10,
13
+ "t": 11,
14
+ "u": 12,
15
+ "r": 13,
16
+ "l": 14,
17
+ "b": 15,
18
+ "m": 16,
19
+ "-": 17,
20
+ "c": 18,
21
+ "y": 19,
22
+ "1": 20,
23
+ "(": 21,
24
+ "M": 22,
25
+ "P": 23,
26
+ ")": 24,
27
+ "x": 25,
28
+ "f": 26,
29
+ "E": 27,
30
+ "G": 28,
31
+ "T": 29,
32
+ "I": 30,
33
+ "A": 31,
34
+ "R": 32,
35
+ "d": 33,
36
+ ".": 34,
37
+ "w": 35,
38
+ ",": 36,
39
+ "j": 37,
40
+ "v": 38,
41
+ "N": 39,
42
+ "F": 40,
43
+ "L": 41,
44
+ "6": 42,
45
+ "H": 43,
46
+ "S": 44,
47
+ "/": 45,
48
+ "2": 46,
49
+ "\u2265": 47,
50
+ "3": 48,
51
+ "0": 49,
52
+ "%": 50,
53
+ "B": 51,
54
+ "5": 52,
55
+ ":": 53,
56
+ "\"": 54,
57
+ "D": 55,
58
+ "7": 56,
59
+ "k": 57,
60
+ "8": 58,
61
+ "=": 59,
62
+ "4": 60,
63
+ "W": 61,
64
+ "Y": 62,
65
+ ";": 63,
66
+ "\\": 64,
67
+ ">": 65,
68
+ "O": 66,
69
+ "U": 67,
70
+ "K": 68,
71
+ "9": 69,
72
+ "+": 70,
73
+ "Q": 71,
74
+ "z": 72,
75
+ "#": 73,
76
+ "q": 74,
77
+ "\u00b5": 75,
78
+ "J": 76,
79
+ "V": 77,
80
+ "'": 78,
81
+ "\u03b2": 79,
82
+ "[": 80,
83
+ "]": 81,
84
+ "X": 82,
85
+ "\u00d7": 83,
86
+ "<": 84,
87
+ "\u2264": 85,
88
+ "\u00b1": 86,
89
+ "\u03bc": 87,
90
+ "\u2081": 88,
91
+ "Z": 89,
92
+ "\u00ef": 90,
93
+ "*": 91,
94
+ "&": 92,
95
+ "\uff09": 93,
96
+ "\u03b3": 94,
97
+ "\u00e3": 95,
98
+ "?": 96,
99
+ "\u33a1": 97,
100
+ "\u2026": 98,
101
+ "\u00ae": 99,
102
+ "\u3016": 100,
103
+ "\u3017": 101,
104
+ "_": 102,
105
+ "\u03b1": 103,
106
+ "{": 104,
107
+ "}": 105,
108
+ "!": 106,
109
+ "^": 107,
110
+ "\u00b2": 108,
111
+ "\u03c0": 109,
112
+ "\uff0c": 110,
113
+ "\u03bb": 111,
114
+ "\u2122": 112,
115
+ "\u00df": 113,
116
+ "\u00ca": 114,
117
+ "\uff1a": 115,
118
+ "\u3001": 116,
119
+ "\u25cf": 117,
120
+ "\u221e": 118,
121
+ "\u2192": 119,
122
+ "\u03ba": 120,
123
+ "\u03c4": 121,
124
+ "\uff08": 122,
125
+ "~": 123,
126
+ "\u00b0": 124,
127
+ "\u00c9": 125,
128
+ "\u00e9": 126,
129
+ "\u2206": 127,
130
+ "\u2267": 128,
131
+ "\u02c2": 129,
132
+ "\u2022": 130,
133
+ "\u00a3": 131,
134
+ "\u2162": 132,
135
+ "\u00b9": 133,
136
+ "\uff1b": 134,
137
+ "\u25e6": 135,
138
+ "\u2082": 136,
139
+ "\u00fc": 137,
140
+ "\u03b4": 138,
141
+ "\u00e1": 139,
142
+ "\u0131": 140,
143
+ "\u2163": 141,
144
+ "\u00f6": 142,
145
+ "\u2103": 143,
146
+ "\u00b7": 144,
147
+ "\u2161": 145,
148
+ "\u00bd": 146,
149
+ "\u0307": 147,
150
+ "\u0251": 148,
151
+ "\u2079": 149,
152
+ "\u2020": 150,
153
+ "\u0394": 151,
154
+ "\u0445": 152,
155
+ "\u00e0": 153,
156
+ "\uff5b": 154,
157
+ "\u221a": 155,
158
+ "\ufb01": 156,
159
+ "\u00b4": 157,
160
+ "\ufb03": 158,
161
+ "\u00f4": 159,
162
+ "\u0421": 160,
163
+ "\u00b3": 161,
164
+ "@": 162,
165
+ "\u00d6": 163,
166
+ "\u00ba": 164,
167
+ "\u037e": 165,
168
+ "\u00f3": 166,
169
+ "\u0263": 167,
170
+ "\u00ea": 168,
171
+ "\u00ed": 169,
172
+ "\u02c3": 170,
173
+ "\u0130": 171,
174
+ "\u00dc": 172,
175
+ "\u00e4": 173,
176
+ "\u00ac": 174,
177
+ "\u2083": 175,
178
+ "\u00e8": 176
179
+ }
embedding_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "embedding": {
3
+ "bert_model_name": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract",
4
+ "freeze_bert": false,
5
+ "use_pos": true,
6
+ "pos_emb_dim": 50,
7
+ "use_char": true,
8
+ "char_emb_dim": 50,
9
+ "char_hidden": 50,
10
+ "char_pad_idx": 0,
11
+ "use_flair": true,
12
+ "flair_dim": 768,
13
+ "dropout": 0.1
14
+ },
15
+ "backbone": {
16
+ "bilstm_hidden": 256,
17
+ "bilstm_layers": 1,
18
+ "bilstm_dropout": 0.0,
19
+ "out_dim": 512,
20
+ "num_labels": 3
21
+ }
22
+ }
id2label.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "0": "B-BIOMARKER",
3
+ "1": "I-BIOMARKER",
4
+ "2": "O"
5
+ }
metrics_epoch_3.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "precision": 0.9260513407862958,
3
+ "recall": 0.9366626372519391,
4
+ "f1": 0.9313267644076072
5
+ }
pos2id.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<PAD>": 0,
3
+ "NN": 1
4
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac2a408958da7ad4130a9647dd74e62488f46f6e8457e2bfdbc55f2b40f5e97d
3
+ size 454155431