From 55f813bfbb6113c4423194d6b44f671e04c2e526 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 16 Mar 2017 11:59:43 -0500 Subject: [PATCH] Don't reapply the model during training --- spacy/train.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/train.py b/spacy/train.py index 175c99cf2..18269e0ad 100644 --- a/spacy/train.py +++ b/spacy/train.py @@ -47,7 +47,8 @@ class Trainer(object): for process in self.nlp.pipeline: if hasattr(process, 'update'): loss = process.update(doc, gold, itn=self.nr_epoch) - process(doc) + else: + process(doc) return doc def evaluate(self, dev_sents, gold_preproc=False):