Fix default path loading.

This commit is contained in:
Matthew Honnibal 2016-11-23 23:48:55 +01:00
parent e01c1875ee
commit 48e1dc29d4
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ class Language(object):
def __init__(self, **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')
path = overrides.get('path', True)
if isinstance(path, basestring):
path = pathlib.Path(path)
if path is True: