From 08e913476073392c8ad1fabd12d4de2be658fd0e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 15 Oct 2016 14:12:54 +0200 Subject: [PATCH] Change default value of path to True --- spacy/language.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index b228052fc..2cb95b935 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -258,7 +258,7 @@ class Language(object): self.end_training() def __init__(self, - path=None, + path=True, vocab=True, tokenizer=True, tagger=True, @@ -294,7 +294,7 @@ class Language(object): path = data_dir if isinstance(path, basestring): path = pathlib.Path(path) - if path is None: + if path is True: path = util.match_best_version(self.lang, '', util.get_data_path()) self.path = path defaults = defaults if defaults is not True else self.get_defaults(self.path)