mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Use dep and ent multi-task objectives for parser'
This commit is contained in:
		
							parent
							
								
									9bfd585a11
								
							
						
					
					
						commit
						ca28590ddd
					
				|  | @ -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) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user