From 888c05a7fa3b8197ef129c466b5af70791d1c720 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 7 Nov 2015 11:02:44 +1100 Subject: [PATCH] * Fix variable naming in StepwiseState, for thinc 4.0 --- spacy/syntax/parser.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 3e131e088..e0016ccf0 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -151,7 +151,7 @@ cdef class StepwiseState: self.stcls = StateClass.init(doc.c, doc.length) self.parser.moves.initialize_state(self.stcls) self.eg = Example(self.parser.model.nr_class, CONTEXT_SIZE, - self.parser.model.nr_feat, self.parser.model.nr_embed) + self.parser.model.nr_templ, self.parser.model.nr_embed) def __enter__(self): return self