-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_data.py
48 lines (41 loc) · 1.22 KB
/
config_data.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
max_train_epoch = 2
display_steps = 100
eval_steps = 1000
save_steps = 1000
vocab_file=""
train_hparams={
'dataset': { 'files': 'data_utils/multi_pos_train3.json',
'vocab_file': vocab_file},
'batch_size': 256,
'lazy_strategy': 'all',
'num_parallel_calls': 10,
'shuffle_buffer_size': 50000,
"allow_smaller_final_batch": False,
"cache_strategy": "none",
'shuffle': True,
}
valid_hparams={
'dataset': { 'files': 'data_utils/valid.json',
'vocab_file': vocab_file},
'batch_size': 64,
"allow_smaller_final_batch": False,
'shuffle': False,
}
hard_hparams={
'dataset': { 'files': 'data_utils/event_eval/hard.txt',
'vocab_file': vocab_file},
'batch_size': 128,
'shuffle': False
}
hardext_hparams={
'dataset': { 'files': 'data_utils/event_eval/hard_extend.txt',
'vocab_file': vocab_file},
'batch_size': 128,
'shuffle': False
}
trans_hparams={
'dataset': { 'files': 'data_utils/event_eval/transitive.txt',
'vocab_file': vocab_file},
'batch_size': 128,
'shuffle': False
}