From ea8a1030078347b10d5877f49ad4358a2838e112 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 14 Jun 2015 19:01:26 +0200 Subject: [PATCH] * Fix import of TransitionSystem in parser.pyx --- spacy/syntax/parser.pyx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 2a86c87f8..c5648cb06 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -35,10 +35,9 @@ from thinc.search cimport MaxViolation from ..tokens cimport Tokens, TokenC from ..strings cimport StringStore -from .arc_eager cimport TransitionSystem, Transition -from .arc_eager cimport push_cost, arc_cost from .transition_system import OracleError +from .transition_system cimport TransitionSystem, Transition from ..gold cimport GoldParse @@ -144,8 +143,6 @@ cdef class Parser: print '\n'.join('\t'.join(s) for s in history) print words[gold.c.heads[stcls.S(0)]] print words[gold.c.heads[stcls.B(0)]] - print push_cost(stcls, &gold.c, stcls.B(0)) - print arc_cost(stcls, &gold.c, stcls.S(0), stcls.B(0)) self.moves.set_valid(self.moves._is_valid, stcls) raise cost = guess.get_cost(stcls, &gold.c, guess.label)