mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix default use of feature_templates in parser
This commit is contained in:
parent
3fba897e0f
commit
7887ab3b36
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user