From 99e309bb19cbf74ac2f13f65f91c62d9fa251457 Mon Sep 17 00:00:00 2001 From: Sofie Van Landeghem Date: Fri, 25 Oct 2019 22:26:42 +0200 Subject: [PATCH] fix nn parser sample construction (#4524) --- spacy/syntax/nn_parser.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index dd19b0e43..2c1a5dba2 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -607,7 +607,7 @@ cdef class Parser: ids, words, tags, heads, deps, ents = annots doc_sample.append(Doc(self.vocab, words=words)) gold_sample.append(GoldParse(doc_sample[-1], words=words, tags=tags, - heads=heads, deps=deps, ents=ents)) + heads=heads, deps=deps, entities=ents)) self.model.begin_training(doc_sample, gold_sample) if pipeline is not None: self.init_multitask_objectives(get_gold_tuples, pipeline, sgd=sgd, **cfg)