Fix parser features

This commit is contained in:
Matthew Honnibal 2016-09-26 17:57:32 +02:00
parent e607e4b598
commit ee6fa106da

View File

@ -92,10 +92,7 @@ cdef class Parser:
@classmethod
def blank(cls, Vocab vocab, moves_class, **cfg):
moves = moves_class(vocab.strings, cfg.get('labels', {}))
if 'features' in cfg:
templates = get_templates(cfg['features'])
else:
templates = tuple()
templates = cfg.get('features', tuple())
model = ParserModel(templates)
return cls(vocab, moves, model, **cfg)