Fix spacy.train

This commit is contained in:
Matthew Honnibal 2016-10-15 23:53:46 +02:00
parent a48aa15384
commit 1c62573a41

View File

@ -32,7 +32,7 @@ class Trainer(object):
yield _epoch()
def update(self, doc, gold):
for process in self.nlp.pipeline[1:]:
for process in self.nlp.pipeline:
if hasattr(process, 'update'):
process.update(doc, gold)
process(doc)