Upload BertForTokenClassification
Browse files- README.md +199 -0
- config.json +218 -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,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"BertForTokenClassification"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0.1,
|
6 |
+
"classifier_dropout": null,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.1,
|
9 |
+
"hidden_size": 768,
|
10 |
+
"id2label": {
|
11 |
+
"0": "O",
|
12 |
+
"1": "B-d_",
|
13 |
+
"2": "I-d_",
|
14 |
+
"3": "B-d_positive",
|
15 |
+
"4": "I-d_positive",
|
16 |
+
"5": "B-d_suspicious",
|
17 |
+
"6": "I-d_suspicious",
|
18 |
+
"7": "B-d_negative",
|
19 |
+
"8": "I-d_negative",
|
20 |
+
"9": "B-d_general",
|
21 |
+
"10": "I-d_general",
|
22 |
+
"11": "B-a_",
|
23 |
+
"12": "I-a_",
|
24 |
+
"13": "B-f_",
|
25 |
+
"14": "I-f_",
|
26 |
+
"15": "B-c_",
|
27 |
+
"16": "I-c_",
|
28 |
+
"17": "B-d_other",
|
29 |
+
"18": "I-d_other",
|
30 |
+
"19": "B-timex3_",
|
31 |
+
"20": "I-timex3_",
|
32 |
+
"21": "B-timex3_date",
|
33 |
+
"22": "I-timex3_date",
|
34 |
+
"23": "B-timex3_time",
|
35 |
+
"24": "I-timex3_time",
|
36 |
+
"25": "B-timex3_duration",
|
37 |
+
"26": "I-timex3_duration",
|
38 |
+
"27": "B-timex3_set",
|
39 |
+
"28": "I-timex3_set",
|
40 |
+
"29": "B-timex3_age",
|
41 |
+
"30": "I-timex3_age",
|
42 |
+
"31": "B-timex3_med",
|
43 |
+
"32": "I-timex3_med",
|
44 |
+
"33": "B-timex3_misc",
|
45 |
+
"34": "I-timex3_misc",
|
46 |
+
"35": "B-timex3_CC",
|
47 |
+
"36": "I-timex3_CC",
|
48 |
+
"37": "B-t-test_",
|
49 |
+
"38": "I-t-test_",
|
50 |
+
"39": "B-t-test_executed",
|
51 |
+
"40": "I-t-test_executed",
|
52 |
+
"41": "B-t-test_negated",
|
53 |
+
"42": "I-t-test_negated",
|
54 |
+
"43": "B-t-test_scheduled",
|
55 |
+
"44": "I-t-test_scheduled",
|
56 |
+
"45": "B-t-test_other",
|
57 |
+
"46": "I-t-test_other",
|
58 |
+
"47": "B-t-key_",
|
59 |
+
"48": "I-t-key_",
|
60 |
+
"49": "B-t-key_scheduled",
|
61 |
+
"50": "I-t-key_scheduled",
|
62 |
+
"51": "B-t-val_",
|
63 |
+
"52": "I-t-val_",
|
64 |
+
"53": "B-t-key_other",
|
65 |
+
"54": "I-t-key_other",
|
66 |
+
"55": "B-t-key_executed",
|
67 |
+
"56": "I-t-key_executed",
|
68 |
+
"57": "B-t-key_negated",
|
69 |
+
"58": "I-t-key_negated",
|
70 |
+
"59": "B-m-key_",
|
71 |
+
"60": "I-m-key_",
|
72 |
+
"61": "B-m-key_executed",
|
73 |
+
"62": "I-m-key_executed",
|
74 |
+
"63": "B-m-key_negated",
|
75 |
+
"64": "I-m-key_negated",
|
76 |
+
"65": "B-m-key_scheduled",
|
77 |
+
"66": "I-m-key_scheduled",
|
78 |
+
"67": "B-m-key_other",
|
79 |
+
"68": "I-m-key_other",
|
80 |
+
"69": "B-m-val_",
|
81 |
+
"70": "I-m-val_",
|
82 |
+
"71": "B-m-val_negated",
|
83 |
+
"72": "I-m-val_negated",
|
84 |
+
"73": "B-m-val_executed",
|
85 |
+
"74": "I-m-val_executed",
|
86 |
+
"75": "B-m-val_scheduled",
|
87 |
+
"76": "I-m-val_scheduled",
|
88 |
+
"77": "B-m-val_other",
|
89 |
+
"78": "I-m-val_other",
|
90 |
+
"79": "B-r_scheduled",
|
91 |
+
"80": "I-r_scheduled",
|
92 |
+
"81": "B-r_executed",
|
93 |
+
"82": "I-r_executed",
|
94 |
+
"83": "B-r_negated",
|
95 |
+
"84": "I-r_negated",
|
96 |
+
"85": "B-r_other",
|
97 |
+
"86": "I-r_other",
|
98 |
+
"87": "B-cc_scheduled",
|
99 |
+
"88": "I-cc_scheduled",
|
100 |
+
"89": "B-cc_executed",
|
101 |
+
"90": "I-cc_executed",
|
102 |
+
"91": "B-cc_negated",
|
103 |
+
"92": "I-cc_negated",
|
104 |
+
"93": "B-cc_other",
|
105 |
+
"94": "I-cc_other"
|
106 |
+
},
|
107 |
+
"initializer_range": 0.02,
|
108 |
+
"intermediate_size": 3072,
|
109 |
+
"label2id": {
|
110 |
+
"B-a_": 11,
|
111 |
+
"B-c_": 15,
|
112 |
+
"B-cc_executed": 89,
|
113 |
+
"B-cc_negated": 91,
|
114 |
+
"B-cc_other": 93,
|
115 |
+
"B-cc_scheduled": 87,
|
116 |
+
"B-d_": 1,
|
117 |
+
"B-d_general": 9,
|
118 |
+
"B-d_negative": 7,
|
119 |
+
"B-d_other": 17,
|
120 |
+
"B-d_positive": 3,
|
121 |
+
"B-d_suspicious": 5,
|
122 |
+
"B-f_": 13,
|
123 |
+
"B-m-key_": 59,
|
124 |
+
"B-m-key_executed": 61,
|
125 |
+
"B-m-key_negated": 63,
|
126 |
+
"B-m-key_other": 67,
|
127 |
+
"B-m-key_scheduled": 65,
|
128 |
+
"B-m-val_": 69,
|
129 |
+
"B-m-val_executed": 73,
|
130 |
+
"B-m-val_negated": 71,
|
131 |
+
"B-m-val_other": 77,
|
132 |
+
"B-m-val_scheduled": 75,
|
133 |
+
"B-r_executed": 81,
|
134 |
+
"B-r_negated": 83,
|
135 |
+
"B-r_other": 85,
|
136 |
+
"B-r_scheduled": 79,
|
137 |
+
"B-t-key_": 47,
|
138 |
+
"B-t-key_executed": 55,
|
139 |
+
"B-t-key_negated": 57,
|
140 |
+
"B-t-key_other": 53,
|
141 |
+
"B-t-key_scheduled": 49,
|
142 |
+
"B-t-test_": 37,
|
143 |
+
"B-t-test_executed": 39,
|
144 |
+
"B-t-test_negated": 41,
|
145 |
+
"B-t-test_other": 45,
|
146 |
+
"B-t-test_scheduled": 43,
|
147 |
+
"B-t-val_": 51,
|
148 |
+
"B-timex3_": 19,
|
149 |
+
"B-timex3_CC": 35,
|
150 |
+
"B-timex3_age": 29,
|
151 |
+
"B-timex3_date": 21,
|
152 |
+
"B-timex3_duration": 25,
|
153 |
+
"B-timex3_med": 31,
|
154 |
+
"B-timex3_misc": 33,
|
155 |
+
"B-timex3_set": 27,
|
156 |
+
"B-timex3_time": 23,
|
157 |
+
"I-a_": 12,
|
158 |
+
"I-c_": 16,
|
159 |
+
"I-cc_executed": 90,
|
160 |
+
"I-cc_negated": 92,
|
161 |
+
"I-cc_other": 94,
|
162 |
+
"I-cc_scheduled": 88,
|
163 |
+
"I-d_": 2,
|
164 |
+
"I-d_general": 10,
|
165 |
+
"I-d_negative": 8,
|
166 |
+
"I-d_other": 18,
|
167 |
+
"I-d_positive": 4,
|
168 |
+
"I-d_suspicious": 6,
|
169 |
+
"I-f_": 14,
|
170 |
+
"I-m-key_": 60,
|
171 |
+
"I-m-key_executed": 62,
|
172 |
+
"I-m-key_negated": 64,
|
173 |
+
"I-m-key_other": 68,
|
174 |
+
"I-m-key_scheduled": 66,
|
175 |
+
"I-m-val_": 70,
|
176 |
+
"I-m-val_executed": 74,
|
177 |
+
"I-m-val_negated": 72,
|
178 |
+
"I-m-val_other": 78,
|
179 |
+
"I-m-val_scheduled": 76,
|
180 |
+
"I-r_executed": 82,
|
181 |
+
"I-r_negated": 84,
|
182 |
+
"I-r_other": 86,
|
183 |
+
"I-r_scheduled": 80,
|
184 |
+
"I-t-key_": 48,
|
185 |
+
"I-t-key_executed": 56,
|
186 |
+
"I-t-key_negated": 58,
|
187 |
+
"I-t-key_other": 54,
|
188 |
+
"I-t-key_scheduled": 50,
|
189 |
+
"I-t-test_": 38,
|
190 |
+
"I-t-test_executed": 40,
|
191 |
+
"I-t-test_negated": 42,
|
192 |
+
"I-t-test_other": 46,
|
193 |
+
"I-t-test_scheduled": 44,
|
194 |
+
"I-t-val_": 52,
|
195 |
+
"I-timex3_": 20,
|
196 |
+
"I-timex3_CC": 36,
|
197 |
+
"I-timex3_age": 30,
|
198 |
+
"I-timex3_date": 22,
|
199 |
+
"I-timex3_duration": 26,
|
200 |
+
"I-timex3_med": 32,
|
201 |
+
"I-timex3_misc": 34,
|
202 |
+
"I-timex3_set": 28,
|
203 |
+
"I-timex3_time": 24,
|
204 |
+
"O": 0
|
205 |
+
},
|
206 |
+
"layer_norm_eps": 1e-12,
|
207 |
+
"max_position_embeddings": 512,
|
208 |
+
"model_type": "bert",
|
209 |
+
"num_attention_heads": 12,
|
210 |
+
"num_hidden_layers": 12,
|
211 |
+
"pad_token_id": 0,
|
212 |
+
"position_embedding_type": "absolute",
|
213 |
+
"torch_dtype": "float32",
|
214 |
+
"transformers_version": "4.51.3",
|
215 |
+
"type_vocab_size": 2,
|
216 |
+
"use_cache": true,
|
217 |
+
"vocab_size": 32768
|
218 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2cfe36cd49d62337ae0d4a809c7de75d70d064b42ed74174492b6db7d5767542
|
3 |
+
size 442781884
|