mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Merge pull request #697 from jmizgajski/patch-1
Fixed missing vec_path declaration that was failing if 'add_vectors' …
This commit is contained in:
commit
f3c61ae246
|
@ -44,6 +44,7 @@ def _fix_deprecated_glove_vectors_loading(overrides):
|
||||||
else:
|
else:
|
||||||
path = overrides['path']
|
path = overrides['path']
|
||||||
data_path = path.parent
|
data_path = path.parent
|
||||||
|
vec_path = None
|
||||||
if 'add_vectors' not in overrides:
|
if 'add_vectors' not in overrides:
|
||||||
if 'vectors' in overrides:
|
if 'vectors' in overrides:
|
||||||
vec_path = match_best_version(overrides['vectors'], None, data_path)
|
vec_path = match_best_version(overrides['vectors'], None, data_path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user