From 83ba6c247c47fc1fc1fce5d45e1c4f94b6fe3d9b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 26 Mar 2017 16:46:00 +0200 Subject: [PATCH] Fix init of Language without model --- spacy/language.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 4542eae3b..a90e580ca 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -278,7 +278,8 @@ class Language(object): path = pathlib.Path(path) if path is True: path = util.get_data_path() / self.lang - + if not path.exists() and 'path' not in overrides: + path = None self.meta = overrides.get('meta', {}) self.path = path