Skip to content

Commit f736a5c

Browse files
authored
Update model_tx.py
1 parent fc8102e commit f736a5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neural_ner/model_tx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def __init__(self, vocab, config):
3535
if config.is_caps:
3636
input_size += config.caps_embd_dim
3737

38-
model_dim = 256 #512
39-
num_head = 4 #8
38+
model_dim = 128 #512
39+
num_head = 2 #8
4040
num_layer = 2 #6
4141
dropout_ratio = 0.1
42-
affine_dim = 512 #2048
42+
affine_dim = 256 #2048
4343

4444
self.tx_proj = nn.Linear(input_size, model_dim)
4545
self.lstm = Encoder(num_layer, num_head, dropout_ratio, model_dim, affine_dim)

0 commit comments

Comments
 (0)