Commit ·
0430f37
1
Parent(s): 6d8f5a7
Upload BertForSequenceClassification
Browse files- config.json +146 -68
config.json
CHANGED
|
@@ -1,79 +1,93 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"BertForSequenceClassification"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
| 8 |
-
"custom_pipelines": {
|
| 9 |
-
"question-classifier": {
|
| 10 |
-
"default": {
|
| 11 |
-
"model": {
|
| 12 |
-
"pt": [
|
| 13 |
-
"ai-research-lab/bert-question-classifier",
|
| 14 |
-
"main"
|
| 15 |
-
]
|
| 16 |
-
}
|
| 17 |
-
},
|
| 18 |
-
"impl": "classifier_pipeline.MultiTaskClassifierPipeline",
|
| 19 |
-
"pt": [
|
| 20 |
-
"AutoModelForSequenceClassification"
|
| 21 |
-
],
|
| 22 |
-
"tf": [],
|
| 23 |
-
"type": "text"
|
| 24 |
-
}
|
| 25 |
-
},
|
| 26 |
"gradient_checkpointing": false,
|
| 27 |
"hidden_act": "gelu",
|
| 28 |
"hidden_dropout_prob": 0.1,
|
| 29 |
-
"hidden_size":
|
| 30 |
"id2label": {
|
| 31 |
"0": "d",
|
| 32 |
"1": "y",
|
| 33 |
"2": "c",
|
| 34 |
"3": "o",
|
| 35 |
-
"4": "
|
| 36 |
-
"5": "
|
| 37 |
-
"6": "
|
| 38 |
-
"7": "
|
| 39 |
-
"8": "
|
| 40 |
-
"9": "
|
| 41 |
-
"10": "
|
| 42 |
-
"11": "
|
| 43 |
-
"12": "
|
| 44 |
-
"13": "
|
| 45 |
-
"14": "
|
| 46 |
-
"15": "
|
| 47 |
-
"16": "
|
| 48 |
-
"17": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
},
|
| 50 |
"initializer_range": 0.02,
|
| 51 |
-
"intermediate_size":
|
| 52 |
"label2id": {
|
| 53 |
-
"
|
|
|
|
| 54 |
"c": 2,
|
| 55 |
-
"career":
|
|
|
|
|
|
|
| 56 |
"d": 0,
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
"
|
| 62 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
"o": 3,
|
| 64 |
-
"
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
"y": 1
|
| 71 |
},
|
| 72 |
"layer_norm_eps": 1e-12,
|
| 73 |
"max_position_embeddings": 512,
|
| 74 |
"model_type": "bert",
|
| 75 |
-
"num_attention_heads":
|
| 76 |
-
"num_hidden_layers":
|
| 77 |
"pad_token_id": 0,
|
| 78 |
"position_embedding_type": "absolute",
|
| 79 |
"task_specific_params": {
|
|
@@ -106,52 +120,116 @@
|
|
| 106 |
"column": "category",
|
| 107 |
"labels": [
|
| 108 |
[
|
| 109 |
-
"
|
| 110 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
],
|
| 112 |
[
|
| 113 |
"family",
|
| 114 |
"Family"
|
| 115 |
],
|
| 116 |
[
|
| 117 |
-
"
|
| 118 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
],
|
| 120 |
[
|
| 121 |
"love",
|
| 122 |
"Love"
|
| 123 |
],
|
| 124 |
[
|
| 125 |
-
"
|
| 126 |
-
"
|
| 127 |
],
|
| 128 |
[
|
| 129 |
-
"
|
| 130 |
-
"
|
| 131 |
],
|
| 132 |
[
|
| 133 |
-
"
|
| 134 |
-
"
|
| 135 |
],
|
| 136 |
[
|
| 137 |
-
"
|
| 138 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
],
|
| 140 |
[
|
| 141 |
"hard times",
|
| 142 |
"Hard Times"
|
| 143 |
],
|
| 144 |
[
|
| 145 |
-
"
|
| 146 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
],
|
| 148 |
[
|
| 149 |
"spirituality",
|
| 150 |
"Spirituality"
|
| 151 |
],
|
| 152 |
[
|
| 153 |
-
"
|
| 154 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
]
|
| 156 |
],
|
| 157 |
"loss_weight": 1,
|
|
@@ -190,7 +268,7 @@
|
|
| 190 |
}
|
| 191 |
},
|
| 192 |
"torch_dtype": "float32",
|
| 193 |
-
"transformers_version": "4.
|
| 194 |
"type_vocab_size": 2,
|
| 195 |
"use_cache": true,
|
| 196 |
"vocab_size": 30522
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "google-bert/bert-base-uncased",
|
| 3 |
"architectures": [
|
| 4 |
"BertForSequenceClassification"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"gradient_checkpointing": false,
|
| 9 |
"hidden_act": "gelu",
|
| 10 |
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
"id2label": {
|
| 13 |
"0": "d",
|
| 14 |
"1": "y",
|
| 15 |
"2": "c",
|
| 16 |
"3": "o",
|
| 17 |
+
"4": "self",
|
| 18 |
+
"5": "health",
|
| 19 |
+
"6": "accumulated wealth",
|
| 20 |
+
"7": "family",
|
| 21 |
+
"8": "social media",
|
| 22 |
+
"9": "short travel",
|
| 23 |
+
"10": "sports",
|
| 24 |
+
"11": "property",
|
| 25 |
+
"12": "primary education",
|
| 26 |
+
"13": "love",
|
| 27 |
+
"14": "romance",
|
| 28 |
+
"15": "children",
|
| 29 |
+
"16": "higher education",
|
| 30 |
+
"17": "job",
|
| 31 |
+
"18": "diseases",
|
| 32 |
+
"19": "hard times",
|
| 33 |
+
"20": "competitive exam",
|
| 34 |
+
"21": "marriage",
|
| 35 |
+
"22": "business",
|
| 36 |
+
"23": "life span",
|
| 37 |
+
"24": "unearned wealth",
|
| 38 |
+
"25": "spirituality",
|
| 39 |
+
"26": "highest education",
|
| 40 |
+
"27": "long travel",
|
| 41 |
+
"28": "career",
|
| 42 |
+
"29": "income",
|
| 43 |
+
"30": "foreign",
|
| 44 |
+
"31": "expense",
|
| 45 |
+
"32": "time_based",
|
| 46 |
+
"33": "positive_perception"
|
| 47 |
},
|
| 48 |
"initializer_range": 0.02,
|
| 49 |
+
"intermediate_size": 3072,
|
| 50 |
"label2id": {
|
| 51 |
+
"accumulated wealth": 6,
|
| 52 |
+
"business": 22,
|
| 53 |
"c": 2,
|
| 54 |
+
"career": 28,
|
| 55 |
+
"children": 15,
|
| 56 |
+
"competitive exam": 20,
|
| 57 |
"d": 0,
|
| 58 |
+
"diseases": 18,
|
| 59 |
+
"expense": 31,
|
| 60 |
+
"family": 7,
|
| 61 |
+
"foreign": 30,
|
| 62 |
+
"hard times": 19,
|
| 63 |
+
"health": 5,
|
| 64 |
+
"higher education": 16,
|
| 65 |
+
"highest education": 26,
|
| 66 |
+
"income": 29,
|
| 67 |
+
"job": 17,
|
| 68 |
+
"life span": 23,
|
| 69 |
+
"long travel": 27,
|
| 70 |
+
"love": 13,
|
| 71 |
+
"marriage": 21,
|
| 72 |
"o": 3,
|
| 73 |
+
"positive_perception": 33,
|
| 74 |
+
"primary education": 12,
|
| 75 |
+
"property": 11,
|
| 76 |
+
"romance": 14,
|
| 77 |
+
"self": 4,
|
| 78 |
+
"short travel": 9,
|
| 79 |
+
"social media": 8,
|
| 80 |
+
"spirituality": 25,
|
| 81 |
+
"sports": 10,
|
| 82 |
+
"time_based": 32,
|
| 83 |
+
"unearned wealth": 24,
|
| 84 |
"y": 1
|
| 85 |
},
|
| 86 |
"layer_norm_eps": 1e-12,
|
| 87 |
"max_position_embeddings": 512,
|
| 88 |
"model_type": "bert",
|
| 89 |
+
"num_attention_heads": 12,
|
| 90 |
+
"num_hidden_layers": 12,
|
| 91 |
"pad_token_id": 0,
|
| 92 |
"position_embedding_type": "absolute",
|
| 93 |
"task_specific_params": {
|
|
|
|
| 120 |
"column": "category",
|
| 121 |
"labels": [
|
| 122 |
[
|
| 123 |
+
"self",
|
| 124 |
+
"Self"
|
| 125 |
+
],
|
| 126 |
+
[
|
| 127 |
+
"health",
|
| 128 |
+
"Health"
|
| 129 |
+
],
|
| 130 |
+
[
|
| 131 |
+
"accumulated wealth",
|
| 132 |
+
"Accumulated Wealth"
|
| 133 |
],
|
| 134 |
[
|
| 135 |
"family",
|
| 136 |
"Family"
|
| 137 |
],
|
| 138 |
[
|
| 139 |
+
"social media",
|
| 140 |
+
"Social media"
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
"short travel",
|
| 144 |
+
"Short Travel"
|
| 145 |
+
],
|
| 146 |
+
[
|
| 147 |
+
"sports",
|
| 148 |
+
"Sports"
|
| 149 |
+
],
|
| 150 |
+
[
|
| 151 |
+
"property",
|
| 152 |
+
"Property"
|
| 153 |
+
],
|
| 154 |
+
[
|
| 155 |
+
"primary education",
|
| 156 |
+
"Primary Education"
|
| 157 |
],
|
| 158 |
[
|
| 159 |
"love",
|
| 160 |
"Love"
|
| 161 |
],
|
| 162 |
[
|
| 163 |
+
"romance",
|
| 164 |
+
"Romance"
|
| 165 |
],
|
| 166 |
[
|
| 167 |
+
"children",
|
| 168 |
+
"Children"
|
| 169 |
],
|
| 170 |
[
|
| 171 |
+
"higher education",
|
| 172 |
+
"Higher Education"
|
| 173 |
],
|
| 174 |
[
|
| 175 |
+
"job",
|
| 176 |
+
"Job"
|
| 177 |
+
],
|
| 178 |
+
[
|
| 179 |
+
"diseases",
|
| 180 |
+
"Diseases"
|
| 181 |
],
|
| 182 |
[
|
| 183 |
"hard times",
|
| 184 |
"Hard Times"
|
| 185 |
],
|
| 186 |
[
|
| 187 |
+
"competitive exam",
|
| 188 |
+
"Competitive Exam"
|
| 189 |
+
],
|
| 190 |
+
[
|
| 191 |
+
"marriage",
|
| 192 |
+
"Marriage"
|
| 193 |
+
],
|
| 194 |
+
[
|
| 195 |
+
"business",
|
| 196 |
+
"Business"
|
| 197 |
+
],
|
| 198 |
+
[
|
| 199 |
+
"life span",
|
| 200 |
+
"Life Span"
|
| 201 |
+
],
|
| 202 |
+
[
|
| 203 |
+
"unearned wealth",
|
| 204 |
+
"Unearned Wealth"
|
| 205 |
],
|
| 206 |
[
|
| 207 |
"spirituality",
|
| 208 |
"Spirituality"
|
| 209 |
],
|
| 210 |
[
|
| 211 |
+
"highest education",
|
| 212 |
+
"Highest Education"
|
| 213 |
+
],
|
| 214 |
+
[
|
| 215 |
+
"long travel",
|
| 216 |
+
"Long Travel"
|
| 217 |
+
],
|
| 218 |
+
[
|
| 219 |
+
"career",
|
| 220 |
+
"Career"
|
| 221 |
+
],
|
| 222 |
+
[
|
| 223 |
+
"income",
|
| 224 |
+
"Income"
|
| 225 |
+
],
|
| 226 |
+
[
|
| 227 |
+
"foreign",
|
| 228 |
+
"Foreign"
|
| 229 |
+
],
|
| 230 |
+
[
|
| 231 |
+
"expense",
|
| 232 |
+
"Expense"
|
| 233 |
]
|
| 234 |
],
|
| 235 |
"loss_weight": 1,
|
|
|
|
| 268 |
}
|
| 269 |
},
|
| 270 |
"torch_dtype": "float32",
|
| 271 |
+
"transformers_version": "4.48.1",
|
| 272 |
"type_vocab_size": 2,
|
| 273 |
"use_cache": true,
|
| 274 |
"vocab_size": 30522
|