Fix training evaluate method

This commit is contained in:
Matthew Honnibal 2016-10-27 18:02:19 +02:00
parent 301f3cc898
commit 18590eba94

View File

@ -48,7 +48,7 @@ class Trainer(object):
docs = self.make_docs(raw_text, paragraph_tuples)
golds = self.make_golds(docs, paragraph_tuples)
for doc, gold in zip(docs, golds):
for process in self.nlp.pipeline[1:]:
for process in self.nlp.pipeline:
process(doc)
scorer.score(doc, gold)
return scorer