From 9605cf39cc1c8119535616ebd1df0d011cb4e9f8 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 18 Mar 2017 12:58:45 +0100 Subject: [PATCH] Handle default path in Language classes --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index ed5a7ed96..573bb5a86 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -279,7 +279,7 @@ class Language(object): if isinstance(path, basestring): path = pathlib.Path(path) 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.path = path