Fix error

This commit is contained in:
Ines Montani 2020-09-28 21:17:45 +02:00
parent a139fe672b
commit 046f655d86
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def add_tok2vec_weights(
raise ConfigValidationError(config=nlp.config, errors=errors)
if not init_tok2vec.exists():
err = f"can't find pretrained tok2vec: {init_tok2vec}"
errors = [{"loc": ["initialize", "vectors", "init_tok2vec"], "msg": err}]
errors = [{"loc": ["initialize", "vocab", "init_tok2vec"], "msg": err}]
raise ConfigValidationError(config=nlp.config, errors=errors)
with init_tok2vec.open("rb") as file_:
weights_data = file_.read()