Fix init of Language without model

This commit is contained in:
Matthew Honnibal 2017-03-26 16:46:00 +02:00
parent fa107f95f6
commit 83ba6c247c

View File

@ -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