From fc2185bfe3d9bdd72408dd02ad59189234a2b4be Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 7 Nov 2015 10:48:31 +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 b46d42547..3e131e088 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.n_feats, self.parser.model.n_feats) + self.parser.model.nr_feat, self.parser.model.nr_embed) def __enter__(self): return self