juanquivilla
commited on
Commit
•
a3ae855
1
Parent(s):
4f5cca2
Upload BertForTokenClassification
Browse files- README.md +199 -0
- config.json +150 -0
- 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,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-large-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 1024,
|
13 |
+
"id2label": {
|
14 |
+
"0": "O",
|
15 |
+
"1": "B-BOD",
|
16 |
+
"2": "I-BOD",
|
17 |
+
"3": "B-BUILDING",
|
18 |
+
"4": "I-BUILDING",
|
19 |
+
"5": "B-CARDISSUER",
|
20 |
+
"6": "I-CARDISSUER",
|
21 |
+
"7": "B-CITY",
|
22 |
+
"8": "I-CITY",
|
23 |
+
"9": "B-COUNTRY",
|
24 |
+
"10": "I-COUNTRY",
|
25 |
+
"11": "B-DATE",
|
26 |
+
"12": "I-DATE",
|
27 |
+
"13": "B-DRIVERLICENSE",
|
28 |
+
"14": "I-DRIVERLICENSE",
|
29 |
+
"15": "B-EMAIL",
|
30 |
+
"16": "I-EMAIL",
|
31 |
+
"17": "B-GEOCOORD",
|
32 |
+
"18": "I-GEOCOORD",
|
33 |
+
"19": "B-GIVENNAME1",
|
34 |
+
"20": "I-GIVENNAME1",
|
35 |
+
"21": "B-GIVENNAME2",
|
36 |
+
"22": "I-GIVENNAME2",
|
37 |
+
"23": "B-IDCARD",
|
38 |
+
"24": "I-IDCARD",
|
39 |
+
"25": "B-IP",
|
40 |
+
"26": "I-IP",
|
41 |
+
"27": "B-LASTNAME1",
|
42 |
+
"28": "I-LASTNAME1",
|
43 |
+
"29": "B-LASTNAME2",
|
44 |
+
"30": "I-LASTNAME2",
|
45 |
+
"31": "B-LASTNAME3",
|
46 |
+
"32": "I-LASTNAME3",
|
47 |
+
"33": "B-PASS",
|
48 |
+
"34": "I-PASS",
|
49 |
+
"35": "B-PASSPORT",
|
50 |
+
"36": "I-PASSPORT",
|
51 |
+
"37": "B-POSTCODE",
|
52 |
+
"38": "I-POSTCODE",
|
53 |
+
"39": "B-SECADDRESS",
|
54 |
+
"40": "I-SECADDRESS",
|
55 |
+
"41": "B-SEX",
|
56 |
+
"42": "I-SEX",
|
57 |
+
"43": "B-SOCIALNUMBER",
|
58 |
+
"44": "I-SOCIALNUMBER",
|
59 |
+
"45": "B-STATE",
|
60 |
+
"46": "I-STATE",
|
61 |
+
"47": "B-STREET",
|
62 |
+
"48": "I-STREET",
|
63 |
+
"49": "B-TEL",
|
64 |
+
"50": "I-TEL",
|
65 |
+
"51": "B-TIME",
|
66 |
+
"52": "I-TIME",
|
67 |
+
"53": "B-TITLE",
|
68 |
+
"54": "I-TITLE",
|
69 |
+
"55": "B-USERNAME",
|
70 |
+
"56": "I-USERNAME"
|
71 |
+
},
|
72 |
+
"initializer_range": 0.02,
|
73 |
+
"intermediate_size": 4096,
|
74 |
+
"label2id": {
|
75 |
+
"B-BOD": 1,
|
76 |
+
"B-BUILDING": 3,
|
77 |
+
"B-CARDISSUER": 5,
|
78 |
+
"B-CITY": 7,
|
79 |
+
"B-COUNTRY": 9,
|
80 |
+
"B-DATE": 11,
|
81 |
+
"B-DRIVERLICENSE": 13,
|
82 |
+
"B-EMAIL": 15,
|
83 |
+
"B-GEOCOORD": 17,
|
84 |
+
"B-GIVENNAME1": 19,
|
85 |
+
"B-GIVENNAME2": 21,
|
86 |
+
"B-IDCARD": 23,
|
87 |
+
"B-IP": 25,
|
88 |
+
"B-LASTNAME1": 27,
|
89 |
+
"B-LASTNAME2": 29,
|
90 |
+
"B-LASTNAME3": 31,
|
91 |
+
"B-PASS": 33,
|
92 |
+
"B-PASSPORT": 35,
|
93 |
+
"B-POSTCODE": 37,
|
94 |
+
"B-SECADDRESS": 39,
|
95 |
+
"B-SEX": 41,
|
96 |
+
"B-SOCIALNUMBER": 43,
|
97 |
+
"B-STATE": 45,
|
98 |
+
"B-STREET": 47,
|
99 |
+
"B-TEL": 49,
|
100 |
+
"B-TIME": 51,
|
101 |
+
"B-TITLE": 53,
|
102 |
+
"B-USERNAME": 55,
|
103 |
+
"I-BOD": 2,
|
104 |
+
"I-BUILDING": 4,
|
105 |
+
"I-CARDISSUER": 6,
|
106 |
+
"I-CITY": 8,
|
107 |
+
"I-COUNTRY": 10,
|
108 |
+
"I-DATE": 12,
|
109 |
+
"I-DRIVERLICENSE": 14,
|
110 |
+
"I-EMAIL": 16,
|
111 |
+
"I-GEOCOORD": 18,
|
112 |
+
"I-GIVENNAME1": 20,
|
113 |
+
"I-GIVENNAME2": 22,
|
114 |
+
"I-IDCARD": 24,
|
115 |
+
"I-IP": 26,
|
116 |
+
"I-LASTNAME1": 28,
|
117 |
+
"I-LASTNAME2": 30,
|
118 |
+
"I-LASTNAME3": 32,
|
119 |
+
"I-PASS": 34,
|
120 |
+
"I-PASSPORT": 36,
|
121 |
+
"I-POSTCODE": 38,
|
122 |
+
"I-SECADDRESS": 40,
|
123 |
+
"I-SEX": 42,
|
124 |
+
"I-SOCIALNUMBER": 44,
|
125 |
+
"I-STATE": 46,
|
126 |
+
"I-STREET": 48,
|
127 |
+
"I-TEL": 50,
|
128 |
+
"I-TIME": 52,
|
129 |
+
"I-TITLE": 54,
|
130 |
+
"I-USERNAME": 56,
|
131 |
+
"O": 0
|
132 |
+
},
|
133 |
+
"layer_norm_eps": 1e-12,
|
134 |
+
"max_position_embeddings": 512,
|
135 |
+
"model_type": "bert",
|
136 |
+
"num_attention_heads": 16,
|
137 |
+
"num_hidden_layers": 24,
|
138 |
+
"pad_token_id": 0,
|
139 |
+
"pooler_fc_size": 768,
|
140 |
+
"pooler_num_attention_heads": 12,
|
141 |
+
"pooler_num_fc_layers": 3,
|
142 |
+
"pooler_size_per_head": 128,
|
143 |
+
"pooler_type": "first_token_transform",
|
144 |
+
"position_embedding_type": "absolute",
|
145 |
+
"torch_dtype": "float32",
|
146 |
+
"transformers_version": "4.41.2",
|
147 |
+
"type_vocab_size": 2,
|
148 |
+
"use_cache": true,
|
149 |
+
"vocab_size": 28996
|
150 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbb124e2a014ad978ceef5df21dcd790f48e3b5742fb3e3e6d3793eff01146aa
|
3 |
+
size 1330399172
|