From 6aef2edfb1d6ba5cdbecc6ddccb68f1d593e11a1 Mon Sep 17 00:00:00 2001 From: Matthw Honnibal Date: Sun, 6 Oct 2019 19:23:46 +0200 Subject: [PATCH] Use cosine loss in Cloze multitask --- spacy/pipeline/pipes.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/pipes.pyx b/spacy/pipeline/pipes.pyx index 8f07bf8f7..4ab0e6741 100644 --- a/spacy/pipeline/pipes.pyx +++ b/spacy/pipeline/pipes.pyx @@ -33,7 +33,7 @@ from .._ml import build_text_classifier, build_simple_cnn_text_classifier from .._ml import build_bow_text_classifier, build_nel_encoder from .._ml import link_vectors_to_models, zero_init, flatten from .._ml import masked_language_model, create_default_optimizer, get_cossim_loss -from ..errors import Errors, TempErrors, Warnings +from ..errors import Errors, TempErrors, user_warning, Warnings from .. import util