diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 9b71e78ed..02231e271 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -105,11 +105,9 @@ cdef class GreedyParser: cdef Transition guess cdef Transition best cdef atom_t[CONTEXT_SIZE] context - while not is_final(state): fill_context(context, state) scores = self.model.score(context) - guess = self.moves.best_valid(scores, state) best = self.moves.best_gold(scores, state, gold)