mirror of https://github.com/explosion/spaCy.git
Fix default path loading.
This commit is contained in:
parent
e01c1875ee
commit
48e1dc29d4
|
@ -249,7 +249,7 @@ class Language(object):
|
|||
def __init__(self, **overrides):
|
||||
if 'data_dir' in overrides and 'path' not in overrides:
|
||||
raise ValueError("The argument 'data_dir' has been renamed to 'path'")
|
||||
path = overrides.get('path')
|
||||
path = overrides.get('path', True)
|
||||
if isinstance(path, basestring):
|
||||
path = pathlib.Path(path)
|
||||
if path is True:
|
||||
|
|
Loading…
Reference in New Issue