Fix parser_maxout_pieces for depth=0

This commit is contained in:
Matthw Honnibal 2019-10-21 01:25:03 +02:00
parent b4e0040d10
commit f2808f78a7

View File

@ -68,7 +68,6 @@ cdef class Parser:
hidden_width = util.env_opt('hidden_width', cfg.get('hidden_width', 64)) hidden_width = util.env_opt('hidden_width', cfg.get('hidden_width', 64))
if depth == 0: if depth == 0:
hidden_width = nr_class hidden_width = nr_class
parser_maxout_pieces = 1
embed_size = util.env_opt('embed_size', cfg.get('embed_size', 2000)) embed_size = util.env_opt('embed_size', cfg.get('embed_size', 2000))
pretrained_vectors = cfg.get('pretrained_vectors', None) pretrained_vectors = cfg.get('pretrained_vectors', None)
tok2vec = Tok2Vec(token_vector_width, embed_size, tok2vec = Tok2Vec(token_vector_width, embed_size,