Upd tests

This commit is contained in:
Matthew Honnibal 2020-09-29 12:05:38 +02:00
parent f2d1b7feb5
commit e1fdf2b7c5
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def test_init_parser(parser):
def _train_parser(parser):
fix_random_seed(1)
parser.add_label("left")
parser.initialize(lambda: [_parser_example(parser)], **parser.cfg)
parser.initialize(lambda: [_parser_example(parser)])
sgd = Adam(0.001)
for i in range(5):

View File

@ -34,7 +34,7 @@ def parser(vocab):
parser.cfg["hidden_width"] = 32
# parser.add_label('right')
parser.add_label("left")
parser.initialize(lambda: [_parser_example(parser)], **parser.cfg)
parser.initialize(lambda: [_parser_example(parser)])
sgd = Adam(0.001)
for i in range(10):