Skip to content

Commit c19c320

Browse files
authored
Update config.py
1 parent d3f1b6e commit c19c320

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

neural_ner/config.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,25 @@ class Config(object):
2323
config.label_type= 'iobes' #'iob'
2424

2525
config.lr = 0.001
26+
config.lr_decay = 0.05
2627
config.dropout_ratio = 0.5
2728

2829
config.max_grad_norm = 5.0
29-
config.batch_size = 1
30+
config.batch_size = 10
3031
config.num_epochs = 100
3132

3233
config.print_every = 100
3334

34-
config.reg_lambda = 0.00007
35+
config.reg_lambda = 1e-8
3536

3637
config.dropout_rate = 0.5
3738

3839
config.lower = True
3940
config.zeros = True
4041
config.random_init = True
4142

42-
config.char_embd_dim = 25
43-
config.char_lstm_dim = 25
43+
config.char_embd_dim = 30
44+
config.char_lstm_dim = 30
4445
config.word_emdb_dim = 100
4546
config.word_lstm_dim = 100
4647
config.caps_embd_dim = 3
@@ -51,7 +52,7 @@ class Config(object):
5152

5253
config.is_cuda = True
5354

54-
config.is_l2_loss = False
55+
config.is_l2_loss = True
5556

5657
config.model_name = 'model.NER_SOFTMAX_CHAR_CRF'
5758
config.optimizer = 'sgd_mom'

0 commit comments

Comments
 (0)