From f5dea1406d95e0c174c23d26b875a91b1fcfa721 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 28 Dec 2015 18:48:57 +0100 Subject: [PATCH] * Fix silly mistake in Language.__init__ --- spacy/language.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index fe03db4f5..c992335b3 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -209,10 +209,10 @@ class Language(object): if load_vectors is not True: warn("load_vectors is deprecated", DeprecationWarning) if vocab in (None, True): - self.vocab = self.default_vocab(package) + vocab = self.default_vocab(package) self.vocab = vocab if tokenizer in (None, True): - self.tokenizer = Tokenizer.from_package(package, self.vocab) + tokenizer = Tokenizer.from_package(package, self.vocab) self.tokenizer = tokenizer if tagger in (None, True): tagger = Tagger.from_package(package, self.vocab)