pweidel commited on
Commit
dff6f48
·
verified ·
1 Parent(s): 08b9e36

Upload BertForTokenClassification

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +260 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForTokenClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "directionality": "bidi",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "B-ACCOUNTNAME",
13
+ "1": "B-ACCOUNTNUMBER",
14
+ "2": "B-AGE",
15
+ "3": "B-AMOUNT",
16
+ "4": "B-BIC",
17
+ "5": "B-BITCOINADDRESS",
18
+ "6": "B-BUILDINGNUMBER",
19
+ "7": "B-CITY",
20
+ "8": "B-COMPANYNAME",
21
+ "9": "B-COUNTY",
22
+ "10": "B-CREDITCARDCVV",
23
+ "11": "B-CREDITCARDISSUER",
24
+ "12": "B-CREDITCARDNUMBER",
25
+ "13": "B-CURRENCY",
26
+ "14": "B-CURRENCYCODE",
27
+ "15": "B-CURRENCYNAME",
28
+ "16": "B-CURRENCYSYMBOL",
29
+ "17": "B-DATE",
30
+ "18": "B-DOB",
31
+ "19": "B-EMAIL",
32
+ "20": "B-ETHEREUMADDRESS",
33
+ "21": "B-EYECOLOR",
34
+ "22": "B-FIRSTNAME",
35
+ "23": "B-GENDER",
36
+ "24": "B-HEIGHT",
37
+ "25": "B-IBAN",
38
+ "26": "B-IP",
39
+ "27": "B-IPV4",
40
+ "28": "B-IPV6",
41
+ "29": "B-JOBAREA",
42
+ "30": "B-JOBTITLE",
43
+ "31": "B-JOBTYPE",
44
+ "32": "B-LASTNAME",
45
+ "33": "B-LITECOINADDRESS",
46
+ "34": "B-MAC",
47
+ "35": "B-MASKEDNUMBER",
48
+ "36": "B-MIDDLENAME",
49
+ "37": "B-NEARBYGPSCOORDINATE",
50
+ "38": "B-ORDINALDIRECTION",
51
+ "39": "B-PASSWORD",
52
+ "40": "B-PHONEIMEI",
53
+ "41": "B-PHONENUMBER",
54
+ "42": "B-PIN",
55
+ "43": "B-PREFIX",
56
+ "44": "B-SECONDARYADDRESS",
57
+ "45": "B-SEX",
58
+ "46": "B-SSN",
59
+ "47": "B-STATE",
60
+ "48": "B-STREET",
61
+ "49": "B-TIME",
62
+ "50": "B-URL",
63
+ "51": "B-USERAGENT",
64
+ "52": "B-USERNAME",
65
+ "53": "B-VEHICLEVIN",
66
+ "54": "B-VEHICLEVRM",
67
+ "55": "B-ZIPCODE",
68
+ "56": "I-ACCOUNTNAME",
69
+ "57": "I-ACCOUNTNUMBER",
70
+ "58": "I-AGE",
71
+ "59": "I-AMOUNT",
72
+ "60": "I-BIC",
73
+ "61": "I-BITCOINADDRESS",
74
+ "62": "I-BUILDINGNUMBER",
75
+ "63": "I-CITY",
76
+ "64": "I-COMPANYNAME",
77
+ "65": "I-COUNTY",
78
+ "66": "I-CREDITCARDCVV",
79
+ "67": "I-CREDITCARDISSUER",
80
+ "68": "I-CREDITCARDNUMBER",
81
+ "69": "I-CURRENCY",
82
+ "70": "I-CURRENCYCODE",
83
+ "71": "I-CURRENCYNAME",
84
+ "72": "I-CURRENCYSYMBOL",
85
+ "73": "I-DATE",
86
+ "74": "I-DOB",
87
+ "75": "I-EMAIL",
88
+ "76": "I-ETHEREUMADDRESS",
89
+ "77": "I-EYECOLOR",
90
+ "78": "I-FIRSTNAME",
91
+ "79": "I-GENDER",
92
+ "80": "I-HEIGHT",
93
+ "81": "I-IBAN",
94
+ "82": "I-IP",
95
+ "83": "I-IPV4",
96
+ "84": "I-IPV6",
97
+ "85": "I-JOBAREA",
98
+ "86": "I-JOBTITLE",
99
+ "87": "I-JOBTYPE",
100
+ "88": "I-LASTNAME",
101
+ "89": "I-LITECOINADDRESS",
102
+ "90": "I-MAC",
103
+ "91": "I-MASKEDNUMBER",
104
+ "92": "I-MIDDLENAME",
105
+ "93": "I-NEARBYGPSCOORDINATE",
106
+ "94": "I-ORDINALDIRECTION",
107
+ "95": "I-PASSWORD",
108
+ "96": "I-PHONEIMEI",
109
+ "97": "I-PHONENUMBER",
110
+ "98": "I-PIN",
111
+ "99": "I-PREFIX",
112
+ "100": "I-SECONDARYADDRESS",
113
+ "101": "I-SEX",
114
+ "102": "I-SSN",
115
+ "103": "I-STATE",
116
+ "104": "I-STREET",
117
+ "105": "I-TIME",
118
+ "106": "I-URL",
119
+ "107": "I-USERAGENT",
120
+ "108": "I-USERNAME",
121
+ "109": "I-VEHICLEVIN",
122
+ "110": "I-VEHICLEVRM",
123
+ "111": "I-ZIPCODE",
124
+ "112": "O"
125
+ },
126
+ "initializer_range": 0.02,
127
+ "intermediate_size": 3072,
128
+ "label2id": {
129
+ "B-ACCOUNTNAME": 0,
130
+ "B-ACCOUNTNUMBER": 1,
131
+ "B-AGE": 2,
132
+ "B-AMOUNT": 3,
133
+ "B-BIC": 4,
134
+ "B-BITCOINADDRESS": 5,
135
+ "B-BUILDINGNUMBER": 6,
136
+ "B-CITY": 7,
137
+ "B-COMPANYNAME": 8,
138
+ "B-COUNTY": 9,
139
+ "B-CREDITCARDCVV": 10,
140
+ "B-CREDITCARDISSUER": 11,
141
+ "B-CREDITCARDNUMBER": 12,
142
+ "B-CURRENCY": 13,
143
+ "B-CURRENCYCODE": 14,
144
+ "B-CURRENCYNAME": 15,
145
+ "B-CURRENCYSYMBOL": 16,
146
+ "B-DATE": 17,
147
+ "B-DOB": 18,
148
+ "B-EMAIL": 19,
149
+ "B-ETHEREUMADDRESS": 20,
150
+ "B-EYECOLOR": 21,
151
+ "B-FIRSTNAME": 22,
152
+ "B-GENDER": 23,
153
+ "B-HEIGHT": 24,
154
+ "B-IBAN": 25,
155
+ "B-IP": 26,
156
+ "B-IPV4": 27,
157
+ "B-IPV6": 28,
158
+ "B-JOBAREA": 29,
159
+ "B-JOBTITLE": 30,
160
+ "B-JOBTYPE": 31,
161
+ "B-LASTNAME": 32,
162
+ "B-LITECOINADDRESS": 33,
163
+ "B-MAC": 34,
164
+ "B-MASKEDNUMBER": 35,
165
+ "B-MIDDLENAME": 36,
166
+ "B-NEARBYGPSCOORDINATE": 37,
167
+ "B-ORDINALDIRECTION": 38,
168
+ "B-PASSWORD": 39,
169
+ "B-PHONEIMEI": 40,
170
+ "B-PHONENUMBER": 41,
171
+ "B-PIN": 42,
172
+ "B-PREFIX": 43,
173
+ "B-SECONDARYADDRESS": 44,
174
+ "B-SEX": 45,
175
+ "B-SSN": 46,
176
+ "B-STATE": 47,
177
+ "B-STREET": 48,
178
+ "B-TIME": 49,
179
+ "B-URL": 50,
180
+ "B-USERAGENT": 51,
181
+ "B-USERNAME": 52,
182
+ "B-VEHICLEVIN": 53,
183
+ "B-VEHICLEVRM": 54,
184
+ "B-ZIPCODE": 55,
185
+ "I-ACCOUNTNAME": 56,
186
+ "I-ACCOUNTNUMBER": 57,
187
+ "I-AGE": 58,
188
+ "I-AMOUNT": 59,
189
+ "I-BIC": 60,
190
+ "I-BITCOINADDRESS": 61,
191
+ "I-BUILDINGNUMBER": 62,
192
+ "I-CITY": 63,
193
+ "I-COMPANYNAME": 64,
194
+ "I-COUNTY": 65,
195
+ "I-CREDITCARDCVV": 66,
196
+ "I-CREDITCARDISSUER": 67,
197
+ "I-CREDITCARDNUMBER": 68,
198
+ "I-CURRENCY": 69,
199
+ "I-CURRENCYCODE": 70,
200
+ "I-CURRENCYNAME": 71,
201
+ "I-CURRENCYSYMBOL": 72,
202
+ "I-DATE": 73,
203
+ "I-DOB": 74,
204
+ "I-EMAIL": 75,
205
+ "I-ETHEREUMADDRESS": 76,
206
+ "I-EYECOLOR": 77,
207
+ "I-FIRSTNAME": 78,
208
+ "I-GENDER": 79,
209
+ "I-HEIGHT": 80,
210
+ "I-IBAN": 81,
211
+ "I-IP": 82,
212
+ "I-IPV4": 83,
213
+ "I-IPV6": 84,
214
+ "I-JOBAREA": 85,
215
+ "I-JOBTITLE": 86,
216
+ "I-JOBTYPE": 87,
217
+ "I-LASTNAME": 88,
218
+ "I-LITECOINADDRESS": 89,
219
+ "I-MAC": 90,
220
+ "I-MASKEDNUMBER": 91,
221
+ "I-MIDDLENAME": 92,
222
+ "I-NEARBYGPSCOORDINATE": 93,
223
+ "I-ORDINALDIRECTION": 94,
224
+ "I-PASSWORD": 95,
225
+ "I-PHONEIMEI": 96,
226
+ "I-PHONENUMBER": 97,
227
+ "I-PIN": 98,
228
+ "I-PREFIX": 99,
229
+ "I-SECONDARYADDRESS": 100,
230
+ "I-SEX": 101,
231
+ "I-SSN": 102,
232
+ "I-STATE": 103,
233
+ "I-STREET": 104,
234
+ "I-TIME": 105,
235
+ "I-URL": 106,
236
+ "I-USERAGENT": 107,
237
+ "I-USERNAME": 108,
238
+ "I-VEHICLEVIN": 109,
239
+ "I-VEHICLEVRM": 110,
240
+ "I-ZIPCODE": 111,
241
+ "O": 112
242
+ },
243
+ "layer_norm_eps": 1e-12,
244
+ "max_position_embeddings": 512,
245
+ "model_type": "bert",
246
+ "num_attention_heads": 12,
247
+ "num_hidden_layers": 12,
248
+ "pad_token_id": 0,
249
+ "pooler_fc_size": 768,
250
+ "pooler_num_attention_heads": 12,
251
+ "pooler_num_fc_layers": 3,
252
+ "pooler_size_per_head": 128,
253
+ "pooler_type": "first_token_transform",
254
+ "position_embedding_type": "absolute",
255
+ "torch_dtype": "float32",
256
+ "transformers_version": "4.52.4",
257
+ "type_vocab_size": 2,
258
+ "use_cache": true,
259
+ "vocab_size": 119547
260
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5f94485095f72c00ecf3f25b284b10a82244e13916e231d07862b5214cce614
3
+ size 709422340