mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +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()
|
self.end_training()
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
path=None,
|
path=True,
|
||||||
vocab=True,
|
vocab=True,
|
||||||
tokenizer=True,
|
tokenizer=True,
|
||||||
tagger=True,
|
tagger=True,
|
||||||
|
@ -294,7 +294,7 @@ class Language(object):
|
||||||
path = data_dir
|
path = data_dir
|
||||||
if isinstance(path, basestring):
|
if isinstance(path, basestring):
|
||||||
path = pathlib.Path(path)
|
path = pathlib.Path(path)
|
||||||
if path is None:
|
if path is True:
|
||||||
path = util.match_best_version(self.lang, '', util.get_data_path())
|
path = util.match_best_version(self.lang, '', util.get_data_path())
|
||||||
self.path = path
|
self.path = path
|
||||||
defaults = defaults if defaults is not True else self.get_defaults(self.path)
|
defaults = defaults if defaults is not True else self.get_defaults(self.path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user