* Fix error type in lookup_transition

This commit is contained in:
Matthew Honnibal 2015-04-16 01:36:22 +02:00
parent 77d0700caf
commit 99dbf8a38c
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ cdef class BiluoPushDown(TransitionSystem):
if self.c[i].move == move and self.c[i].label == label:
return self.c[i]
else:
raise Exception(name)
raise KeyError(name)
cdef Transition init_transition(self, int clas, int move, int label) except *:
# TODO: Apparent Cython bug here when we try to use the Transition()