diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index 170b7e465..8a6ac4c88 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -278,5 +278,9 @@ cdef class TransitionSystem: s.stack[0], gold_heads[s.stack[0]], s.i, gold_heads[s.i]] - raise Exception(msg % tuple(fields)) + raise OracleError(msg % tuple(fields)) return t + + +class OracleError(Exception): + pass