mirror of https://github.com/explosion/spaCy.git
Fix another bug related to Language.__init__'s path parameter
This commit is contained in:
parent
2dc305f46b
commit
fbe19680a6
|
@ -246,7 +246,7 @@ class Language(object):
|
||||||
self.end_training()
|
self.end_training()
|
||||||
|
|
||||||
def __init__(self, path=True, **overrides):
|
def __init__(self, path=True, **overrides):
|
||||||
if 'data_dir' in overrides and 'path' not in overrides:
|
if 'data_dir' in overrides and path is True:
|
||||||
raise ValueError("The argument 'data_dir' has been renamed to 'path'")
|
raise ValueError("The argument 'data_dir' has been renamed to 'path'")
|
||||||
if isinstance(path, basestring):
|
if isinstance(path, basestring):
|
||||||
path = pathlib.Path(path)
|
path = pathlib.Path(path)
|
||||||
|
|
Loading…
Reference in New Issue