* Use Exception instead of StandardError

This commit is contained in:
Matthew Honnibal 2015-01-04 01:22:12 +11:00
parent 33b7b3182a
commit ae7c811fd1

View File

@ -136,7 +136,7 @@ cdef class TransitionSystem:
add_dep(s, s.stack[-1], s.stack[0], get_s0(s).dep_tag)
pop_stack(s)
else:
raise StandardError(t.move)
raise Exception(t.move)
cdef Transition best_valid(self, const weight_t* scores, const State* s) except *:
cdef bint[N_MOVES] valid