Upload RoCBertForTokenClassification
Browse files- config.json +189 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "weiweishi/roc-bert-base-zh",
|
3 |
+
"architectures": [
|
4 |
+
"RoCBertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"concat_input": true,
|
9 |
+
"directionality": "bidi",
|
10 |
+
"enable_cls": true,
|
11 |
+
"enable_pronunciation": true,
|
12 |
+
"enable_shape": true,
|
13 |
+
"hidden_act": "gelu",
|
14 |
+
"hidden_dropout_prob": 0.1,
|
15 |
+
"hidden_size": 768,
|
16 |
+
"id2label": {
|
17 |
+
"0": "O",
|
18 |
+
"1": "B-CARDINAL",
|
19 |
+
"10": "B-NORP",
|
20 |
+
"11": "B-ORDINAL",
|
21 |
+
"12": "B-ORG",
|
22 |
+
"13": "B-PERCENT",
|
23 |
+
"14": "B-PERSON",
|
24 |
+
"15": "B-PRODUCT",
|
25 |
+
"16": "B-QUANTITY",
|
26 |
+
"17": "B-TIME",
|
27 |
+
"18": "B-WORK_OF_ART",
|
28 |
+
"19": "I-CARDINAL",
|
29 |
+
"2": "B-DATE",
|
30 |
+
"20": "I-DATE",
|
31 |
+
"21": "I-EVENT",
|
32 |
+
"22": "I-FAC",
|
33 |
+
"23": "I-GPE",
|
34 |
+
"24": "I-LANGUAGE",
|
35 |
+
"25": "I-LAW",
|
36 |
+
"26": "I-LOC",
|
37 |
+
"27": "I-MONEY",
|
38 |
+
"28": "I-NORP",
|
39 |
+
"29": "I-ORDINAL",
|
40 |
+
"3": "B-EVENT",
|
41 |
+
"30": "I-ORG",
|
42 |
+
"31": "I-PERCENT",
|
43 |
+
"32": "I-PERSON",
|
44 |
+
"33": "I-PRODUCT",
|
45 |
+
"34": "I-QUANTITY",
|
46 |
+
"35": "I-TIME",
|
47 |
+
"36": "I-WORK_OF_ART",
|
48 |
+
"37": "E-CARDINAL",
|
49 |
+
"38": "E-DATE",
|
50 |
+
"39": "E-EVENT",
|
51 |
+
"4": "B-FAC",
|
52 |
+
"40": "E-FAC",
|
53 |
+
"41": "E-GPE",
|
54 |
+
"42": "E-LANGUAGE",
|
55 |
+
"43": "E-LAW",
|
56 |
+
"44": "E-LOC",
|
57 |
+
"45": "E-MONEY",
|
58 |
+
"46": "E-NORP",
|
59 |
+
"47": "E-ORDINAL",
|
60 |
+
"48": "E-ORG",
|
61 |
+
"49": "E-PERCENT",
|
62 |
+
"5": "B-GPE",
|
63 |
+
"50": "E-PERSON",
|
64 |
+
"51": "E-PRODUCT",
|
65 |
+
"52": "E-QUANTITY",
|
66 |
+
"53": "E-TIME",
|
67 |
+
"54": "E-WORK_OF_ART",
|
68 |
+
"55": "S-CARDINAL",
|
69 |
+
"56": "S-DATE",
|
70 |
+
"57": "S-EVENT",
|
71 |
+
"58": "S-FAC",
|
72 |
+
"59": "S-GPE",
|
73 |
+
"6": "B-LANGUAGE",
|
74 |
+
"60": "S-LANGUAGE",
|
75 |
+
"61": "S-LAW",
|
76 |
+
"62": "S-LOC",
|
77 |
+
"63": "S-MONEY",
|
78 |
+
"64": "S-NORP",
|
79 |
+
"65": "S-ORDINAL",
|
80 |
+
"66": "S-ORG",
|
81 |
+
"67": "S-PERCENT",
|
82 |
+
"68": "S-PERSON",
|
83 |
+
"69": "S-PRODUCT",
|
84 |
+
"7": "B-LAW",
|
85 |
+
"70": "S-QUANTITY",
|
86 |
+
"71": "S-TIME",
|
87 |
+
"72": "S-WORK_OF_ART",
|
88 |
+
"8": "B-LOC",
|
89 |
+
"9": "B-MONEY"
|
90 |
+
},
|
91 |
+
"initializer_range": 0.02,
|
92 |
+
"intermediate_size": 3072,
|
93 |
+
"label2id": {
|
94 |
+
"B-CARDINAL": 1,
|
95 |
+
"B-DATE": 2,
|
96 |
+
"B-EVENT": 3,
|
97 |
+
"B-FAC": 4,
|
98 |
+
"B-GPE": 5,
|
99 |
+
"B-LANGUAGE": 6,
|
100 |
+
"B-LAW": 7,
|
101 |
+
"B-LOC": 8,
|
102 |
+
"B-MONEY": 9,
|
103 |
+
"B-NORP": 10,
|
104 |
+
"B-ORDINAL": 11,
|
105 |
+
"B-ORG": 12,
|
106 |
+
"B-PERCENT": 13,
|
107 |
+
"B-PERSON": 14,
|
108 |
+
"B-PRODUCT": 15,
|
109 |
+
"B-QUANTITY": 16,
|
110 |
+
"B-TIME": 17,
|
111 |
+
"B-WORK_OF_ART": 18,
|
112 |
+
"E-CARDINAL": 37,
|
113 |
+
"E-DATE": 38,
|
114 |
+
"E-EVENT": 39,
|
115 |
+
"E-FAC": 40,
|
116 |
+
"E-GPE": 41,
|
117 |
+
"E-LANGUAGE": 42,
|
118 |
+
"E-LAW": 43,
|
119 |
+
"E-LOC": 44,
|
120 |
+
"E-MONEY": 45,
|
121 |
+
"E-NORP": 46,
|
122 |
+
"E-ORDINAL": 47,
|
123 |
+
"E-ORG": 48,
|
124 |
+
"E-PERCENT": 49,
|
125 |
+
"E-PERSON": 50,
|
126 |
+
"E-PRODUCT": 51,
|
127 |
+
"E-QUANTITY": 52,
|
128 |
+
"E-TIME": 53,
|
129 |
+
"E-WORK_OF_ART": 54,
|
130 |
+
"I-CARDINAL": 19,
|
131 |
+
"I-DATE": 20,
|
132 |
+
"I-EVENT": 21,
|
133 |
+
"I-FAC": 22,
|
134 |
+
"I-GPE": 23,
|
135 |
+
"I-LANGUAGE": 24,
|
136 |
+
"I-LAW": 25,
|
137 |
+
"I-LOC": 26,
|
138 |
+
"I-MONEY": 27,
|
139 |
+
"I-NORP": 28,
|
140 |
+
"I-ORDINAL": 29,
|
141 |
+
"I-ORG": 30,
|
142 |
+
"I-PERCENT": 31,
|
143 |
+
"I-PERSON": 32,
|
144 |
+
"I-PRODUCT": 33,
|
145 |
+
"I-QUANTITY": 34,
|
146 |
+
"I-TIME": 35,
|
147 |
+
"I-WORK_OF_ART": 36,
|
148 |
+
"O": 0,
|
149 |
+
"S-CARDINAL": 55,
|
150 |
+
"S-DATE": 56,
|
151 |
+
"S-EVENT": 57,
|
152 |
+
"S-FAC": 58,
|
153 |
+
"S-GPE": 59,
|
154 |
+
"S-LANGUAGE": 60,
|
155 |
+
"S-LAW": 61,
|
156 |
+
"S-LOC": 62,
|
157 |
+
"S-MONEY": 63,
|
158 |
+
"S-NORP": 64,
|
159 |
+
"S-ORDINAL": 65,
|
160 |
+
"S-ORG": 66,
|
161 |
+
"S-PERCENT": 67,
|
162 |
+
"S-PERSON": 68,
|
163 |
+
"S-PRODUCT": 69,
|
164 |
+
"S-QUANTITY": 70,
|
165 |
+
"S-TIME": 71,
|
166 |
+
"S-WORK_OF_ART": 72
|
167 |
+
},
|
168 |
+
"layer_norm_eps": 1e-12,
|
169 |
+
"max_position_embeddings": 512,
|
170 |
+
"model_type": "roc_bert",
|
171 |
+
"num_attention_heads": 12,
|
172 |
+
"num_hidden_layers": 12,
|
173 |
+
"pad_token_id": 0,
|
174 |
+
"pooler_fc_size": 768,
|
175 |
+
"pooler_num_attention_heads": 12,
|
176 |
+
"pooler_num_fc_layers": 3,
|
177 |
+
"pooler_size_per_head": 128,
|
178 |
+
"pooler_type": "first_token_transform",
|
179 |
+
"position_embedding_type": "absolute",
|
180 |
+
"pronunciation_embed_dim": 768,
|
181 |
+
"pronunciation_vocab_size": 910,
|
182 |
+
"shape_embed_dim": 512,
|
183 |
+
"shape_vocab_size": 24858,
|
184 |
+
"torch_dtype": "float32",
|
185 |
+
"transformers_version": "4.25.0.dev0",
|
186 |
+
"type_vocab_size": 2,
|
187 |
+
"use_cache": true,
|
188 |
+
"vocab_size": 21128
|
189 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c884f1dbd08c3d2b782d62f556917b0fd8905e8dd72b635244f3c9dd2e9f371b
|
3 |
+
size 466820137
|