mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix init of Language without model
This commit is contained in:
parent
fa107f95f6
commit
83ba6c247c
|
@ -278,7 +278,8 @@ class Language(object):
|
||||||
path = pathlib.Path(path)
|
path = pathlib.Path(path)
|
||||||
if path is True:
|
if path is True:
|
||||||
path = util.get_data_path() / self.lang
|
path = util.get_data_path() / self.lang
|
||||||
|
if not path.exists() and 'path' not in overrides:
|
||||||
|
path = None
|
||||||
self.meta = overrides.get('meta', {})
|
self.meta = overrides.get('meta', {})
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user