mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Handle default path in Language classes
This commit is contained in:
parent
ac4b88cce9
commit
9605cf39cc
|
@ -279,7 +279,7 @@ class Language(object):
|
||||||
if isinstance(path, basestring):
|
if isinstance(path, basestring):
|
||||||
path = pathlib.Path(path)
|
path = pathlib.Path(path)
|
||||||
if path is True:
|
if path is True:
|
||||||
path = util.match_best_version(self.lang, '', util.get_data_path())
|
path = util.get_data_path() / self.lang
|
||||||
|
|
||||||
self.meta = overrides.get('meta', {})
|
self.meta = overrides.get('meta', {})
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
Loading…
Reference in New Issue
Block a user