mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Fix spacy.train
This commit is contained in:
parent
a48aa15384
commit
1c62573a41
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user