From 6c4f488e8912d83b6191ddd09cd076732b36ffad Mon Sep 17 00:00:00 2001 From: ExplodingCabbage Date: Wed, 23 Nov 2016 15:12:45 +0000 Subject: [PATCH] Fix syntax mistake --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 3a2e6afbf..e08bd42ad 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -247,7 +247,7 @@ class Language(object): self.end_training() def __init__(self, **overrides): - if 'data_dir' in overrides and overrides.get(path) is True: + if 'data_dir' in overrides and 'path' not in overrides: raise ValueError("The argument 'data_dir' has been renamed to 'path'") path = overrides.get('path') if isinstance(path, basestring):