From b9b695fb1bbe081c6fe947698bc0a4ce3e124a2a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 13 Mar 2015 14:43:53 -0400 Subject: [PATCH] * Remove debug word list --- 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 a18f4b5b7..45bb61103 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -107,13 +107,13 @@ cdef class GreedyParser: cdef Pool mem = Pool() cdef State* state = new_state(mem, tokens.data, tokens.length) self.moves.first_state(state) - py_words = [t.orth_ for t in tokens] 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) cost = guess.get_cost(&guess, state, gold) + self.model.update(context, guess.clas, best.clas, cost) if force_gold: best.do(&best, state)