mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +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:
|
if load_vectors is not True:
|
||||||
warn("load_vectors is deprecated", DeprecationWarning)
|
warn("load_vectors is deprecated", DeprecationWarning)
|
||||||
if vocab in (None, True):
|
if vocab in (None, True):
|
||||||
self.vocab = self.default_vocab(package)
|
vocab = self.default_vocab(package)
|
||||||
self.vocab = vocab
|
self.vocab = vocab
|
||||||
if tokenizer in (None, True):
|
if tokenizer in (None, True):
|
||||||
self.tokenizer = Tokenizer.from_package(package, self.vocab)
|
tokenizer = Tokenizer.from_package(package, self.vocab)
|
||||||
self.tokenizer = tokenizer
|
self.tokenizer = tokenizer
|
||||||
if tagger in (None, True):
|
if tagger in (None, True):
|
||||||
tagger = Tagger.from_package(package, self.vocab)
|
tagger = Tagger.from_package(package, self.vocab)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user