From 872121955c1ba3e8b9d4b2ee9b9ac89b2e85d1d5 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 20 Jun 2019 10:35:51 +0200 Subject: [PATCH] Update error code --- spacy/cli/pretrain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/pretrain.py b/spacy/cli/pretrain.py index 7afd10520..a95a40980 100644 --- a/spacy/cli/pretrain.py +++ b/spacy/cli/pretrain.py @@ -252,7 +252,7 @@ def get_vectors_loss(ops, docs, prediction, objective="L2"): elif objective == "cosine": loss, d_target = get_cossim_loss(prediction, target) else: - raise ValueError(Errors.E139.format(loss_func=objective)) + raise ValueError(Errors.E142.format(loss_func=objective)) return loss, d_target