From 739213a8afafb9263d50af5fd5f96289eab20d68 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 23 Oct 2016 14:24:16 +0200 Subject: [PATCH] Fix create_pipeline keyword argument. --- spacy/language.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 028c0860f..6dbadff08 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -274,13 +274,13 @@ class Language(object): if 'make_doc' in overrides: self.make_doc = overrides['make_doc'] elif 'create_make_doc' in overrides: - self.make_doc = overrides['create_make_doc'] + self.make_doc = overrides['create_make_doc'](self) else: self.make_doc = lambda text: self.tokenizer(text) if 'pipeline' in overrides: self.pipeline = overrides['pipeline'] elif 'create_pipeline' in overrides: - self.pipeline = overrides['create_pipeline'] + self.pipeline = overrides['create_pipeline'](self) else: self.pipeline = [self.tagger, self.parser, self.matcher, self.entity]