* Fix import of TransitionSystem in parser.pyx

This commit is contained in:
Matthew Honnibal 2015-06-14 19:01:26 +02:00
parent e0984ca139
commit ea8a103007
1 changed files with 1 additions and 4 deletions

View File

@ -35,10 +35,9 @@ from thinc.search cimport MaxViolation
from ..tokens cimport Tokens, TokenC from ..tokens cimport Tokens, TokenC
from ..strings cimport StringStore 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 import OracleError
from .transition_system cimport TransitionSystem, Transition
from ..gold cimport GoldParse from ..gold cimport GoldParse
@ -144,8 +143,6 @@ cdef class Parser:
print '\n'.join('\t'.join(s) for s in history) print '\n'.join('\t'.join(s) for s in history)
print words[gold.c.heads[stcls.S(0)]] print words[gold.c.heads[stcls.S(0)]]
print words[gold.c.heads[stcls.B(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) self.moves.set_valid(self.moves._is_valid, stcls)
raise raise
cost = guess.get_cost(stcls, &gold.c, guess.label) cost = guess.get_cost(stcls, &gold.c, guess.label)