From 0369db75c1faa9679ba8d3fa0fce3909ff4c0b14 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 30 Nov 2018 19:53:31 +0100 Subject: [PATCH] Fix support for parser multi-task objectives --- spacy/syntax/nn_parser.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index 51028e2e3..6e949fc35 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -373,6 +373,8 @@ cdef class Parser: if losses is None: losses = {} losses.setdefault(self.name, 0.) + for multitask in self._multitasks: + multitask.update(docs, golds, drop=drop, sgd=sgd) # The probability we use beam update, instead of falling back to # a greedy update beam_update_prob = self.cfg.get('beam_update_prob', 1.0)