From 13a0b312790749089e3db27b722b9365acedb931 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Dec 2016 23:12:49 +0100 Subject: [PATCH] Another tweak to GloVe path hackery. --- spacy/en/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/en/__init__.py b/spacy/en/__init__.py index 68b694d42..d4a371b2b 100644 --- a/spacy/en/__init__.py +++ b/spacy/en/__init__.py @@ -37,7 +37,9 @@ class English(Language): def _fix_deprecated_glove_vectors_loading(overrides): if 'data_dir' in overrides and 'path' not in overrides: raise ValueError("The argument 'data_dir' has been renamed to 'path'") - if overrides.get('path') is None: + if overrides.get('path') is False: + return overrides + if overrides.get('path') in (None, True): data_path = get_data_path() else: path = overrides['path']