LightChen2333
commited on
Commit
•
61ac9c3
1
Parent(s):
0e07f72
Upload 3 files
Browse files- config.json +10 -3
config.json
CHANGED
@@ -309,7 +309,7 @@
|
|
309 |
"intent_classifier": {
|
310 |
"_model_target_": "model.decoder.classifier.LinearClassifier",
|
311 |
"ignore_index": -100,
|
312 |
-
"input_dim":
|
313 |
"intent_label_num": 21,
|
314 |
"mode": "intent",
|
315 |
"use_intent": true
|
@@ -320,13 +320,13 @@
|
|
320 |
"input_dim": 128,
|
321 |
"intent_label_num": 21,
|
322 |
"num_attention_heads": 8,
|
323 |
-
"output_dim":
|
324 |
"slot_label_num": 120
|
325 |
},
|
326 |
"slot_classifier": {
|
327 |
"_model_target_": "model.decoder.classifier.LinearClassifier",
|
328 |
"ignore_index": -100,
|
329 |
-
"input_dim":
|
330 |
"mode": "slot",
|
331 |
"slot_label_num": 120,
|
332 |
"use_slot": true
|
@@ -353,6 +353,13 @@
|
|
353 |
}
|
354 |
},
|
355 |
"return_dict": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
"tokenizer_class": "OpenSLUv1",
|
357 |
"torch_dtype": "float32",
|
358 |
"transformers_version": "4.25.1",
|
|
|
309 |
"intent_classifier": {
|
310 |
"_model_target_": "model.decoder.classifier.LinearClassifier",
|
311 |
"ignore_index": -100,
|
312 |
+
"input_dim": "{model.encoder.output_dim}",
|
313 |
"intent_label_num": 21,
|
314 |
"mode": "intent",
|
315 |
"use_intent": true
|
|
|
320 |
"input_dim": 128,
|
321 |
"intent_label_num": 21,
|
322 |
"num_attention_heads": 8,
|
323 |
+
"output_dim": "{model.encoder.output_dim}",
|
324 |
"slot_label_num": 120
|
325 |
},
|
326 |
"slot_classifier": {
|
327 |
"_model_target_": "model.decoder.classifier.LinearClassifier",
|
328 |
"ignore_index": -100,
|
329 |
+
"input_dim": "{model.encoder.output_dim}",
|
330 |
"mode": "slot",
|
331 |
"slot_label_num": 120,
|
332 |
"use_slot": true
|
|
|
353 |
}
|
354 |
},
|
355 |
"return_dict": false,
|
356 |
+
"tokenizer": {
|
357 |
+
"_align_mode_": "fast",
|
358 |
+
"_padding_side_": "right",
|
359 |
+
"_tokenizer_name_": "word_tokenizer",
|
360 |
+
"add_special_tokens": false,
|
361 |
+
"max_length": 512
|
362 |
+
},
|
363 |
"tokenizer_class": "OpenSLUv1",
|
364 |
"torch_dtype": "float32",
|
365 |
"transformers_version": "4.25.1",
|