mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-02 14:53:41 +03:00
* Use Exception instead of StandardError
This commit is contained in:
parent
33b7b3182a
commit
ae7c811fd1
|
@ -136,7 +136,7 @@ cdef class TransitionSystem:
|
||||||
add_dep(s, s.stack[-1], s.stack[0], get_s0(s).dep_tag)
|
add_dep(s, s.stack[-1], s.stack[0], get_s0(s).dep_tag)
|
||||||
pop_stack(s)
|
pop_stack(s)
|
||||||
else:
|
else:
|
||||||
raise StandardError(t.move)
|
raise Exception(t.move)
|
||||||
|
|
||||||
cdef Transition best_valid(self, const weight_t* scores, const State* s) except *:
|
cdef Transition best_valid(self, const weight_t* scores, const State* s) except *:
|
||||||
cdef bint[N_MOVES] valid
|
cdef bint[N_MOVES] valid
|
||||||
|
|
Loading…
Reference in New Issue
Block a user