Merge pull request #697 from jmizgajski/patch-1

Fixed missing vec_path declaration that was failing if 'add_vectors' …
This commit is contained in:
Matthew Honnibal 2016-12-21 04:32:43 +11:00 committed by GitHub
commit f3c61ae246

View File

@ -44,6 +44,7 @@ def _fix_deprecated_glove_vectors_loading(overrides):
else:
path = overrides['path']
data_path = path.parent
vec_path = None
if 'add_vectors' not in overrides:
if 'vectors' in overrides:
vec_path = match_best_version(overrides['vectors'], None, data_path)