Merge pull request #654 from ExplodingCabbage/patch-1

Fix syntax mistake
This commit is contained in:
Matthew Honnibal 2016-11-24 09:31:36 +11:00 committed by GitHub
commit 1b77932ba5
1 changed files with 1 additions and 1 deletions

View File

@ -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):