mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-14 03:18:20 +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:
|
if self.c[i].move == move and self.c[i].label == label:
|
||||||
return self.c[i]
|
return self.c[i]
|
||||||
else:
|
else:
|
||||||
raise Exception(name)
|
raise KeyError(name)
|
||||||
|
|
||||||
cdef Transition init_transition(self, int clas, int move, int label) except *:
|
cdef Transition init_transition(self, int clas, int move, int label) except *:
|
||||||
# TODO: Apparent Cython bug here when we try to use the Transition()
|
# TODO: Apparent Cython bug here when we try to use the Transition()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user