Fix default use of feature_templates in parser

This commit is contained in:
Matthew Honnibal 2016-10-16 21:41:56 +02:00
parent 3fba897e0f
commit 7887ab3b36

View File

@ -94,6 +94,8 @@ cdef class Parser:
# TODO: Remove this when we no longer need to support old-style models
if isinstance(cfg.get('features'), basestring):
cfg['features'] = get_templates(cfg['features'])
elif 'features' not in cfg:
cfg['features'] = self.feature_templates
self.model = ParserModel(cfg['features'])
self.cfg = cfg