From 954442a807123e2615af6791820bc6dab2f067b6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 7 Nov 2015 10:30:45 +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 6d31291e3..b46d42547 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -150,7 +150,7 @@ cdef class StepwiseState: self.doc = doc self.stcls = StateClass.init(doc.c, doc.length) self.parser.moves.initialize_state(self.stcls) - self.eg = Example(self.parser.model.n_classes, CONTEXT_SIZE, + self.eg = Example(self.parser.model.nr_class, CONTEXT_SIZE, self.parser.model.n_feats, self.parser.model.n_feats) def __enter__(self):