mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
* Fix error type in lookup_transition
This commit is contained in:
parent
77d0700caf
commit
99dbf8a38c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user