From a3c51a035520987e0d78d008c85ddea4ffba346e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 19 Aug 2017 21:58:57 +0200 Subject: [PATCH] Fix creation of pipeline --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index aa757ffa8..ed880d9ca 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -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]