mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Remove unhelpful multitask objectives
This commit is contained in:
parent
983201a83a
commit
66c388ee01
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user