diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index 0a40ed9a8..e8e8ee5da 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -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 StandardError(name) + raise Exception(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()