mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Fix training evaluate method
This commit is contained in:
parent
301f3cc898
commit
18590eba94
|
@ -48,7 +48,7 @@ class Trainer(object):
|
||||||
docs = self.make_docs(raw_text, paragraph_tuples)
|
docs = self.make_docs(raw_text, paragraph_tuples)
|
||||||
golds = self.make_golds(docs, paragraph_tuples)
|
golds = self.make_golds(docs, paragraph_tuples)
|
||||||
for doc, gold in zip(docs, golds):
|
for doc, gold in zip(docs, golds):
|
||||||
for process in self.nlp.pipeline[1:]:
|
for process in self.nlp.pipeline:
|
||||||
process(doc)
|
process(doc)
|
||||||
scorer.score(doc, gold)
|
scorer.score(doc, gold)
|
||||||
return scorer
|
return scorer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user