mirror of https://github.com/explosion/spaCy.git
* Add Exception class, OracleError
This commit is contained in:
parent
bfe1bcc02d
commit
d68678a93e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue