From f0f4fa98385a372e67033e1d74be0d188e8c9d55 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 9 Aug 2015 01:40:13 +0200 Subject: [PATCH] * Fix Parser.get_state --- 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 80c70c333..276e40f94 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -109,7 +109,7 @@ cdef class Parser: 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.c.guess].label) + self.moves.c[eg.guess].do(stcls, self.moves.c[eg.guess].label) if stcls.is_final(): self.moves.finalize_state(stcls) tokens.set_parse(stcls._sent)