From 55fde0e240ab282e01dd7b1e6b1a49f445205a65 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 9 Aug 2015 01:45:30 +0200 Subject: [PATCH] * Fix get_state --- spacy/syntax/parser.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 276e40f94..45da6402d 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -108,8 +108,8 @@ cdef class Parser: self.moves.set_valid(eg.c.is_valid, stcls) fill_context(eg.c.atoms, stcls) self.model.set_scores(eg.c.scores, eg.c.atoms) - eg.guess = arg_max_if_true(eg.c.scores, eg.c.is_valid, self.model.n_classes) - self.moves.c[eg.guess].do(stcls, self.moves.c[eg.guess].label) + eg.c.guess = arg_max_if_true(eg.c.scores, eg.c.is_valid, self.model.n_classes) + self.moves.c[eg.c.guess].do(stcls, self.moves.c[eg.c.guess].label) if stcls.is_final(): self.moves.finalize_state(stcls) tokens.set_parse(stcls._sent)