From b0a07c21a062c53b355efffbdc8b4f66f9c6842e Mon Sep 17 00:00:00 2001 From: Mark Amery Date: Sun, 20 Nov 2016 16:29:57 +0000 Subject: [PATCH] Fix `path` param of `Language.__init__` always being ignored There was an explicitly-declared `path` keyword argument, so 'path' would never be present in `**overrides`. This line just overwrote any manually-specified value the user might've passed to the `path` parameter. --- spacy/language.py | 1 - 1 file changed, 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 4681583c0..73fcda77d 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -248,7 +248,6 @@ class Language(object): def __init__(self, path=True, **overrides): 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', True) if isinstance(path, basestring): path = pathlib.Path(path) if path is True: