From ca28590ddd0f1922d14290170c4c7ff8adcadab2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 26 Sep 2017 08:13:52 -0500 Subject: [PATCH] Use dep and ent multi-task objectives for parser' --- spacy/pipeline.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index cd6fc3da6..294440494 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -747,7 +747,7 @@ cdef class NeuralDependencyParser(NeuralParser): TransitionSystem = ArcEager def init_multitask_objectives(self, gold_tuples, pipeline, **cfg): - for target in ['dep']: + for target in ['dep', 'ent']: labeller = NeuralLabeller(self.vocab, target=target) tok2vec = self.model[0] labeller.begin_training(gold_tuples, pipeline=pipeline, tok2vec=tok2vec)