mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Fix silly mistake in Language.__init__
This commit is contained in:
parent
3bc498e9c9
commit
f5dea1406d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user