mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Fix spacy.train
This commit is contained in:
		
							parent
							
								
									a48aa15384
								
							
						
					
					
						commit
						1c62573a41
					
				| 
						 | 
					@ -32,7 +32,7 @@ class Trainer(object):
 | 
				
			||||||
            yield _epoch()
 | 
					            yield _epoch()
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
    def update(self, doc, gold):
 | 
					    def update(self, doc, gold):
 | 
				
			||||||
        for process in self.nlp.pipeline[1:]:
 | 
					        for process in self.nlp.pipeline:
 | 
				
			||||||
            if hasattr(process, 'update'):
 | 
					            if hasattr(process, 'update'):
 | 
				
			||||||
                process.update(doc, gold)
 | 
					                process.update(doc, gold)
 | 
				
			||||||
            process(doc)
 | 
					            process(doc)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user