-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_taskspecific.py
341 lines (279 loc) · 11.5 KB
/
config_taskspecific.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
from dataclasses import dataclass
from config import Basic_Config
@dataclass
class debug_Config(Basic_Config):
vocab = ['<pad>', 'a', 'b', '1', '2', '3']
@dataclass
class counting_samesymbol_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
@dataclass
class counting_diffsymbol_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
@dataclass
class counting_samesymbol_addbigram_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram']
test_files = ["ood_test", "addbigram_test"]
@dataclass
class counting_diffsymbol_addbigram_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a'] + list('abcdefghijklmnopqrstuvwxyz')
aux_tasks = ['addbigram']
test_files = ["ood_test", "addbigram_test"]
@dataclass
class counting_samesymbol_plain_addbigram_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram']
test_files = ["ood_test", "addbigram_test"]
@dataclass
class counting_samesymbol_plain2_addbigram_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram']
test_files = ["ood_test", "addbigram_test"]
@dataclass
class counting_samesymbol_plain2_addbigram_blkseq_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a', '<b>']
aux_tasks = ['addbigram_blkseq']
test_files = ["ood_test", "addbigram_blkseq_test"]
@dataclass
class counting_samesymbol_plain2_addbigram_nullseq_Config(Basic_Config):
vocab = ['<null>'] + [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram_nullseq']
test_files = ["ood_test", "addbigram_nullseq_test"]
freeze_null_emb = True
@dataclass
class counting_samesymbol_plain3_addbigram_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram']
test_files = ["ood_test", "addbigram_test"]
@dataclass
class counting_samesymbol_plain3_addbigram_blkseq_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a', '<b>']
aux_tasks = ['addbigram_blkseq']
test_files = ["ood_test", "addbigram_blkseq_test"]
@dataclass
class counting_samesymbol_plain3_addbigram_nullseq_Config(Basic_Config):
vocab = ['<null>'] + [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram_nullseq']
test_files = ["ood_test", "addbigram_nullseq_test"]
freeze_null_emb = True
@dataclass
class counting_samesymbol_plain3_nobos_addbigram_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram']
test_files = ["ood_test", "addbigram_test"]
@dataclass
class counting_samesymbol_shiftedstart4_addbigram_blkseq_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a', '<b>']
aux_tasks = ['addbigram_shiftedblkseq']
test_files = ["ood_test", "addbigram_shiftedblkseq_test"]
@dataclass
class counting_samesymbol_shiftedstart4_addbigram_nullseq_Config(Basic_Config):
vocab = ['<null>'] + [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addbigram_shiftednullseq']
test_files = ["ood_test", "addbigram_shiftednullseq_test"]
freeze_null_emb = True
@dataclass
class counting_samesymbol_blankhelper_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a', '<blk>']
max_seq_len = 210
@dataclass
class counting_samesymbol_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
max_seq_len = 210
@dataclass
class counting_samesymbol_padhelper_addtable_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
max_seq_len = 210
aux_tasks = ['addtable_padhelper']
test_files = ["ood_test", "addtable_padhelper_test"]
@dataclass
class counting_samesymbol_shiftedstart_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
@dataclass
class counting_samesymbol_shiftedstart2_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
@dataclass
class counting_samesymbol_shiftedstart3_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
@dataclass
class counting_diffsymbol_shiftedstart_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a'] + list('abcdefghijklmnopqrstuvwxyz')
@dataclass
class counting_samesymbol_shiftedstart_addtable_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addtable']
test_files = ["ood_test", "addtable_test"]
@dataclass
class counting_samesymbol_shiftedstart2_addtable_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addtable']
test_files = ["ood_test", "addtable_test"]
@dataclass
class counting_samesymbol_shiftedstart3_addtablelarge_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
aux_tasks = ['addtable_large']
test_files = ["ood_test", "addtable_test"]
@dataclass
class counting_samesymbol_shiftedstart2_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
max_seq_len = 210
@dataclass
class counting_samesymbol_shiftedstart3_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
max_seq_len = 210
@dataclass
class counting_samesymbol_shiftedstart2_padhelper_addtable_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
max_seq_len = 210
aux_tasks = ['addtable_padhelper']
test_files = ["ood_test", "addtable_padhelper_test"]
@dataclass
class counting_samesymbol_shiftedstart3_padhelper_addtablelarge_Config(Basic_Config):
vocab = [str(i) for i in range(101)] + ['<pad>', 'a']
max_seq_len = 210
aux_tasks = ['addtable_padhelper_large']
test_files = ["ood_test", "addtable_padhelper_test"]
@dataclass
class counting_samesymbol_mod10_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>', 'a']
@dataclass
class counting_diffsymbol_mod10_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
@dataclass
class counting_samesymbol_mod10_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>', 'a']
max_seq_len = 210
@dataclass
class counting_diffsymbol_mod10_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_seq_len = 210
@dataclass
class counting_samesymbol_mod10_100_200_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>', 'a']
max_position_embeddings = 256
max_seq_len = 256
@dataclass
class counting_diffsymbol_mod10_100_200_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 256
max_seq_len = 256
@dataclass
class counting_samesymbol_mod10bos_Config(Basic_Config):
vocab = [str(i) for i in range(11)] + ['<pad>', 'a']
@dataclass
class counting_samesymbol_mod11_Config(Basic_Config):
vocab = [str(i) for i in range(12)] + ['<pad>', 'a']
@dataclass
class counting_diffsymbol_mod11_Config(Basic_Config):
vocab = [str(i) for i in range(12)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
@dataclass
class counting_samesymbol_mod13_Config(Basic_Config):
vocab = [str(i) for i in range(14)] + ['<pad>', 'a']
max_position_embeddings = 140
max_seq_len = 140
@dataclass
class counting_diffsymbol_mod13_Config(Basic_Config):
vocab = [str(i) for i in range(14)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 140
max_seq_len = 140
@dataclass
class counting_samesymbol_mod14_Config(Basic_Config):
vocab = [str(i) for i in range(15)] + ['<pad>', 'a']
max_position_embeddings = 150
max_seq_len = 150
@dataclass
class counting_diffsymbol_mod14_Config(Basic_Config):
vocab = [str(i) for i in range(15)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 150
max_seq_len = 150
@dataclass
class counting_samesymbol_mod15_Config(Basic_Config):
vocab = [str(i) for i in range(16)] + ['<pad>', 'a']
max_position_embeddings = 160
max_seq_len = 160
@dataclass
class counting_diffsymbol_mod15_Config(Basic_Config):
vocab = [str(i) for i in range(16)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 160
max_seq_len = 160
@dataclass
class counting_samesymbol_mod16_Config(Basic_Config):
vocab = [str(i) for i in range(17)] + ['<pad>', 'a']
max_position_embeddings = 180
max_seq_len = 180
@dataclass
class counting_diffsymbol_mod16_Config(Basic_Config):
vocab = [str(i) for i in range(17)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 180
max_seq_len = 180
@dataclass
class counting_samesymbol_mod17_Config(Basic_Config):
vocab = [str(i) for i in range(18)] + ['<pad>', 'a']
max_position_embeddings = 180
max_seq_len = 180
@dataclass
class counting_diffsymbol_mod17_Config(Basic_Config):
vocab = [str(i) for i in range(18)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 180
max_seq_len = 180
@dataclass
class counting_samesymbol_mod18_Config(Basic_Config):
vocab = [str(i) for i in range(19)] + ['<pad>', 'a']
max_position_embeddings = 190
max_seq_len = 190
@dataclass
class counting_diffsymbol_mod18_Config(Basic_Config):
vocab = [str(i) for i in range(19)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 190
max_seq_len = 190
@dataclass
class counting_samesymbol_mod19_Config(Basic_Config):
vocab = [str(i) for i in range(20)] + ['<pad>', 'a']
max_position_embeddings = 200
max_seq_len = 200
@dataclass
class counting_diffsymbol_mod19_Config(Basic_Config):
vocab = [str(i) for i in range(20)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 200
max_seq_len = 200
@dataclass
class counting_samesymbol_mod20_Config(Basic_Config):
vocab = [str(i) for i in range(21)] + ['<pad>', 'a']
max_position_embeddings = 210
max_seq_len = 210
@dataclass
class counting_diffsymbol_mod20_Config(Basic_Config):
vocab = [str(i) for i in range(21)] + ['<pad>'] + list('abcdefghijklmnopqrstuvwxyz')
max_position_embeddings = 210
max_seq_len = 210
@dataclass
class counting_raspL_Config(Basic_Config):
vocab = [str(i) for i in range(156)] + ['<pad>', '<', '<eos>', '<sos>']
max_position_embeddings = 256
max_seq_len = 256
@dataclass
class counting_selective_Config(Basic_Config):
vocab = [str(i) for i in range(51)] + ['<pad>', 'a', 'b']
@dataclass
class counting_selective_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(51)] + ['<pad>', 'a', 'b']
max_seq_len = 210
@dataclass
class counting_selective_10items_Config(Basic_Config):
vocab = [str(i) for i in range(10)] + ['<pad>']
@dataclass
class counting_selective_10items_padhelper_Config(Basic_Config):
vocab = [str(i) for i in range(10)] + ['<pad>']
max_seq_len = 210
@dataclass
class counting_selective_10items2_Config(Basic_Config):
vocab = [str(i) for i in range(10)] + ['<pad>']
@dataclass
class counting_selective_10items_padhelper2_Config(Basic_Config):
vocab = [str(i) for i in range(10)] + ['<pad>']
max_seq_len = 210
@dataclass
class counting_selective_modular_4items_Config(Basic_Config):
vocab = [str(i) for i in range(4)] + ['<pad>']
max_position_embeddings = 130
max_seq_len = 130