mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
Change default value of path to True
This commit is contained in:
parent
788657f062
commit
08e9134760
|
@ -258,7 +258,7 @@ class Language(object):
|
|||
self.end_training()
|
||||
|
||||
def __init__(self,
|
||||
path=None,
|
||||
path=True,
|
||||
vocab=True,
|
||||
tokenizer=True,
|
||||
tagger=True,
|
||||
|
@ -294,7 +294,7 @@ class Language(object):
|
|||
path = data_dir
|
||||
if isinstance(path, basestring):
|
||||
path = pathlib.Path(path)
|
||||
if path is None:
|
||||
if path is True:
|
||||
path = util.match_best_version(self.lang, '', util.get_data_path())
|
||||
self.path = path
|
||||
defaults = defaults if defaults is not True else self.get_defaults(self.path)
|
||||
|
|
Loading…
Reference in New Issue
Block a user