mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix syntax mistake
This commit is contained in:
parent
60eb2343ce
commit
6c4f488e89
|
@ -247,7 +247,7 @@ class Language(object):
|
||||||
self.end_training()
|
self.end_training()
|
||||||
|
|
||||||
def __init__(self, **overrides):
|
def __init__(self, **overrides):
|
||||||
if 'data_dir' in overrides and overrides.get(path) is True:
|
if 'data_dir' in overrides and 'path' not in overrides:
|
||||||
raise ValueError("The argument 'data_dir' has been renamed to 'path'")
|
raise ValueError("The argument 'data_dir' has been renamed to 'path'")
|
||||||
path = overrides.get('path')
|
path = overrides.get('path')
|
||||||
if isinstance(path, basestring):
|
if isinstance(path, basestring):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user