-
Notifications
You must be signed in to change notification settings - Fork 173
/
experiments.conf
106 lines (99 loc) · 2.27 KB
/
experiments.conf
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
# Word embeddings.
glove_300d {
path = glove.840B.300d.txt
size = 300
}
glove_300d_filtered {
path = glove.840B.300d.txt.filtered
size = 300
}
glove_300d_2w {
path = glove_50_300_2.txt
size = 300
}
# Distributed training configurations.
two_local_gpus {
addresses {
ps = [localhost:2222]
worker = [localhost:2223, localhost:2224]
}
gpus = [0, 1]
}
# Main configuration.
best {
# Computation limits.
max_top_antecedents = 50
max_training_sentences = 50
top_span_ratio = 0.4
# Model hyperparameters.
filter_widths = [3, 4, 5]
filter_size = 50
char_embedding_size = 8
char_vocab_path = "char_vocab.english.txt"
context_embeddings = ${glove_300d_filtered}
head_embeddings = ${glove_300d_2w}
contextualization_size = 200
contextualization_layers = 3
ffnn_size = 150
ffnn_depth = 2
feature_size = 20
max_span_width = 30
use_metadata = true
use_features = true
model_heads = true
coref_depth = 2
lm_layers = 3
lm_size = 1024
coarse_to_fine = true
# Learning hyperparameters.
max_gradient_norm = 5.0
lstm_dropout_rate = 0.4
lexical_dropout_rate = 0.5
dropout_rate = 0.2
optimizer = adam
learning_rate = 0.001
decay_rate = 0.999
decay_frequency = 100
# Other.
train_path = train.english.jsonlines
eval_path = dev.english.jsonlines
conll_eval_path = dev.english.v4_gold_conll
lm_path = elmo_cache.hdf5
genres = ["bc", "bn", "mz", "nw", "pt", "tc", "wb"]
eval_frequency = 5000
report_frequency = 100
log_root = logs
cluster = ${two_local_gpus}
}
# For evaluation. Do not use for training (i.e. only for predict.py, evaluate.py, and demo.py). Rename `best` directory to `final`.
final = ${best} {
context_embeddings = ${glove_300d}
head_embeddings = ${glove_300d_2w}
lm_path = ""
eval_path = test.english.jsonlines
conll_eval_path = test.english.v4_gold_conll
}
# Baselines.
c2f_100_ant = ${best} {
max_top_antecedents = 100
}
c2f_250_ant = ${best} {
max_top_antecedents = 250
}
c2f_1_layer = ${best} {
coref_depth = 1
}
c2f_3_layer = ${best} {
coref_depth = 3
}
distance_50_ant = ${best} {
max_top_antecedents = 50
coarse_to_fine = false
coref_depth = 1
}
distance_100_ant = ${distance_50_ant} {
max_top_antecedents = 100
}
distance_250_ant = ${distance_50_ant} {
max_top_antecedents = 250
}