LightChen2333 commited on
Commit
b94091c
1 Parent(s): 30f5879

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +279 -0
  2. pytorch_model.bin +3 -0
  3. tokenizer.pkl +3 -0
config.json ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_id2label": {
3
+ "intent": [
4
+ "PlayMusic",
5
+ "RateBook",
6
+ "SearchCreativeWork",
7
+ "SearchScreeningEvent",
8
+ "AddToPlaylist",
9
+ "BookRestaurant",
10
+ "GetWeather"
11
+ ],
12
+ "slot": [
13
+ "O",
14
+ "B-artist",
15
+ "I-artist",
16
+ "B-object_name",
17
+ "I-object_name",
18
+ "B-rating_value",
19
+ "B-rating_unit",
20
+ "B-sort",
21
+ "B-music_item",
22
+ "B-object_type",
23
+ "I-object_type",
24
+ "B-best_rating",
25
+ "B-location_name",
26
+ "I-location_name",
27
+ "B-playlist",
28
+ "I-playlist",
29
+ "B-movie_name",
30
+ "I-movie_name",
31
+ "B-party_size_description",
32
+ "I-party_size_description",
33
+ "B-city",
34
+ "B-restaurant_type",
35
+ "B-playlist_owner",
36
+ "B-party_size_number",
37
+ "I-city",
38
+ "B-condition_temperature",
39
+ "B-timeRange",
40
+ "I-timeRange",
41
+ "B-country",
42
+ "B-served_dish",
43
+ "I-served_dish",
44
+ "B-movie_type",
45
+ "B-spatial_relation",
46
+ "I-spatial_relation",
47
+ "B-restaurant_name",
48
+ "I-restaurant_name",
49
+ "B-entity_name",
50
+ "I-entity_name",
51
+ "B-service",
52
+ "B-cuisine",
53
+ "B-poi",
54
+ "I-poi",
55
+ "I-service",
56
+ "B-state",
57
+ "B-track",
58
+ "I-track",
59
+ "B-object_select",
60
+ "B-object_part_of_series_type",
61
+ "I-restaurant_type",
62
+ "I-playlist_owner",
63
+ "B-year",
64
+ "I-sort",
65
+ "B-geographic_poi",
66
+ "I-geographic_poi",
67
+ "B-genre",
68
+ "B-object_location_type",
69
+ "I-object_location_type",
70
+ "B-current_location",
71
+ "I-state",
72
+ "B-condition_description",
73
+ "I-current_location",
74
+ "I-country",
75
+ "I-genre",
76
+ "I-movie_type",
77
+ "B-facility",
78
+ "B-album",
79
+ "I-cuisine",
80
+ "I-album",
81
+ "I-facility",
82
+ "I-object_part_of_series_type",
83
+ "I-music_item",
84
+ "I-object_select"
85
+ ]
86
+ },
87
+ "_label2id": {
88
+ "intent": {
89
+ "AddToPlaylist": 4,
90
+ "BookRestaurant": 5,
91
+ "GetWeather": 6,
92
+ "PlayMusic": 0,
93
+ "RateBook": 1,
94
+ "SearchCreativeWork": 2,
95
+ "SearchScreeningEvent": 3
96
+ },
97
+ "slot": {
98
+ "B-album": 65,
99
+ "B-artist": 1,
100
+ "B-best_rating": 11,
101
+ "B-city": 20,
102
+ "B-condition_description": 59,
103
+ "B-condition_temperature": 25,
104
+ "B-country": 28,
105
+ "B-cuisine": 39,
106
+ "B-current_location": 57,
107
+ "B-entity_name": 36,
108
+ "B-facility": 64,
109
+ "B-genre": 54,
110
+ "B-geographic_poi": 52,
111
+ "B-location_name": 12,
112
+ "B-movie_name": 16,
113
+ "B-movie_type": 31,
114
+ "B-music_item": 8,
115
+ "B-object_location_type": 55,
116
+ "B-object_name": 3,
117
+ "B-object_part_of_series_type": 47,
118
+ "B-object_select": 46,
119
+ "B-object_type": 9,
120
+ "B-party_size_description": 18,
121
+ "B-party_size_number": 23,
122
+ "B-playlist": 14,
123
+ "B-playlist_owner": 22,
124
+ "B-poi": 40,
125
+ "B-rating_unit": 6,
126
+ "B-rating_value": 5,
127
+ "B-restaurant_name": 34,
128
+ "B-restaurant_type": 21,
129
+ "B-served_dish": 29,
130
+ "B-service": 38,
131
+ "B-sort": 7,
132
+ "B-spatial_relation": 32,
133
+ "B-state": 43,
134
+ "B-timeRange": 26,
135
+ "B-track": 44,
136
+ "B-year": 50,
137
+ "I-album": 67,
138
+ "I-artist": 2,
139
+ "I-city": 24,
140
+ "I-country": 61,
141
+ "I-cuisine": 66,
142
+ "I-current_location": 60,
143
+ "I-entity_name": 37,
144
+ "I-facility": 68,
145
+ "I-genre": 62,
146
+ "I-geographic_poi": 53,
147
+ "I-location_name": 13,
148
+ "I-movie_name": 17,
149
+ "I-movie_type": 63,
150
+ "I-music_item": 70,
151
+ "I-object_location_type": 56,
152
+ "I-object_name": 4,
153
+ "I-object_part_of_series_type": 69,
154
+ "I-object_select": 71,
155
+ "I-object_type": 10,
156
+ "I-party_size_description": 19,
157
+ "I-playlist": 15,
158
+ "I-playlist_owner": 49,
159
+ "I-poi": 41,
160
+ "I-restaurant_name": 35,
161
+ "I-restaurant_type": 48,
162
+ "I-served_dish": 30,
163
+ "I-service": 42,
164
+ "I-sort": 51,
165
+ "I-spatial_relation": 33,
166
+ "I-state": 58,
167
+ "I-timeRange": 27,
168
+ "I-track": 45,
169
+ "O": 0
170
+ }
171
+ },
172
+ "_name_or_path": "OpenSLUv1",
173
+ "_num_labels": {
174
+ "intent": 7,
175
+ "slot": 72
176
+ },
177
+ "architectures": [
178
+ "PretrainedModelForSLUToSave"
179
+ ],
180
+ "is_decoder": true,
181
+ "model": {
182
+ "_model_target_": "model.OpenSLUModel",
183
+ "decoder": {
184
+ "_model_target_": "model.decoder.AGIFDecoder",
185
+ "intent_classifier": {
186
+ "_model_target_": "model.decoder.classifier.MLPClassifier",
187
+ "dropout_rate": 0.4,
188
+ "ignore_index": -100,
189
+ "input_dim": 384,
190
+ "intent_label_num": 7,
191
+ "loss_fn": {
192
+ "_model_target_": "torch.nn.BCEWithLogitsLoss"
193
+ },
194
+ "mlp": [
195
+ {
196
+ "_model_target_": "torch.nn.Linear",
197
+ "in_features": "{model.encoder.output_dim}",
198
+ "out_features": 256
199
+ },
200
+ {
201
+ "_model_target_": "torch.nn.LeakyReLU",
202
+ "negative_slope": 0.2
203
+ },
204
+ {
205
+ "_model_target_": "torch.nn.Linear",
206
+ "in_features": 256,
207
+ "out_features": "{base.intent_label_num}"
208
+ }
209
+ ],
210
+ "mode": "intent",
211
+ "multi_threshold": 0.5,
212
+ "return_sentence_level": true,
213
+ "use_intent": true,
214
+ "use_multi": "{base.multi_intent}",
215
+ "weight": 0.3
216
+ },
217
+ "interaction": {
218
+ "_model_target_": "model.decoder.interaction.AGIFInteraction",
219
+ "alpha": 0.2,
220
+ "dropout_rate": 0.4,
221
+ "hidden_dim": 128,
222
+ "input_dim": "{model.encoder.output_dim}",
223
+ "intent_embedding_dim": 128,
224
+ "num_heads": 4,
225
+ "num_layers": 2,
226
+ "output_dim": "{model.decoder.interaction.intent_embedding_dim}",
227
+ "row_normalized": true
228
+ },
229
+ "slot_classifier": {
230
+ "_model_target_": "model.decoder.classifier.AutoregressiveLSTMClassifier",
231
+ "bidirectional": false,
232
+ "dropout_rate": 0.4,
233
+ "embedding_dim": 128,
234
+ "force_ratio": 0.9,
235
+ "hidden_dim": "{model.decoder.interaction.intent_embedding_dim}",
236
+ "ignore_index": -100,
237
+ "input_dim": "{model.encoder.output_dim}",
238
+ "layer_num": 1,
239
+ "mode": "slot",
240
+ "multi_threshold": 0.5,
241
+ "return_sentence_level": false,
242
+ "slot_label_num": 72,
243
+ "use_multi": false,
244
+ "use_slot": true,
245
+ "weight": 0.7
246
+ }
247
+ },
248
+ "encoder": {
249
+ "_model_target_": "model.encoder.AutoEncoder",
250
+ "attention": {
251
+ "dropout_rate": 0.4,
252
+ "hidden_dim": 1024,
253
+ "output_dim": 128
254
+ },
255
+ "embedding": {
256
+ "dropout_rate": 0.4,
257
+ "embedding_dim": 128
258
+ },
259
+ "encoder_name": "self-attention-lstm",
260
+ "lstm": {
261
+ "bidirectional": true,
262
+ "dropout_rate": 0.4,
263
+ "layer_num": 1,
264
+ "output_dim": 256
265
+ },
266
+ "output_dim": 384,
267
+ "return_sentence_level_hidden": true,
268
+ "return_with_input": true,
269
+ "unflat_attention": {
270
+ "dropout_rate": 0.4
271
+ }
272
+ }
273
+ },
274
+ "return_dict": false,
275
+ "tokenizer_class": "OpenSLUv1",
276
+ "torch_dtype": "float32",
277
+ "transformers_version": "4.25.1",
278
+ "vocab_size": 11758
279
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37952e706657b3dd96f01773b24d3176a6a4406d9d2145234fb284c9597556fa
3
+ size 23961139
tokenizer.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cede86a9c60e470d6e281f1bea2aaadbf8876d573c186fae33da4e007e943b59
3
+ size 205345