Fix creation of pipeline

This commit is contained in:
Matthew Honnibal 2017-08-19 21:58:57 +02:00
parent 6a94648373
commit a3c51a0355

View File

@ -95,7 +95,7 @@ class BaseDefaults(object):
meta = nlp.meta if nlp is not None else {}
# Resolve strings, like "cnn", "lstm", etc
pipeline = []
for entry in cls.pipeline:
for entry in meta.get('pipeline', []):
if entry in disable or getattr(entry, 'name', entry) in disable:
continue
factory = cls.Defaults.factories[entry]