Remove unhelpful multitask objectives

This commit is contained in:
Matthew Honnibal 2017-09-27 11:44:16 -05:00
parent 983201a83a
commit 66c388ee01

View File

@ -779,7 +779,7 @@ cdef class NeuralDependencyParser(NeuralParser):
TransitionSystem = ArcEager TransitionSystem = ArcEager
def init_multitask_objectives(self, gold_tuples, pipeline, **cfg): def init_multitask_objectives(self, gold_tuples, pipeline, **cfg):
for target in ['dep', 'ent']: for target in []:
labeller = NeuralLabeller(self.vocab, target=target) labeller = NeuralLabeller(self.vocab, target=target)
tok2vec = self.model[0] tok2vec = self.model[0]
labeller.begin_training(gold_tuples, pipeline=pipeline, tok2vec=tok2vec) labeller.begin_training(gold_tuples, pipeline=pipeline, tok2vec=tok2vec)