mirror of https://github.com/explosion/spaCy.git
Fix message in ParserStateError
This commit is contained in:
parent
6bf505e865
commit
3a03c668c3
|
@ -305,12 +305,13 @@ cdef class StepwiseState:
|
||||||
|
|
||||||
class ParserStateError(ValueError):
|
class ParserStateError(ValueError):
|
||||||
def __init__(self, doc):
|
def __init__(self, doc):
|
||||||
self.message = ("Error analysing doc -- no valid actions available. This should "
|
ValueError.__init__(self,
|
||||||
"never happen, so please report the error on the issue tracker. "
|
"Error analysing doc -- no valid actions available. This should "
|
||||||
"Here's the thread to do so --- reopen it if it's closed:\n"
|
"never happen, so please report the error on the issue tracker. "
|
||||||
"https://github.com/spacy-io/spaCy/issues/429\n"
|
"Here's the thread to do so --- reopen it if it's closed:\n"
|
||||||
"Please include the text that the parser failed on, which is:\n"
|
"https://github.com/spacy-io/spaCy/issues/429\n"
|
||||||
"%s" % repr(doc.text))
|
"Please include the text that the parser failed on, which is:\n"
|
||||||
|
"%s" % repr(doc.text))
|
||||||
|
|
||||||
|
|
||||||
cdef int _arg_max_clas(const weight_t* scores, int move, const Transition* actions,
|
cdef int _arg_max_clas(const weight_t* scores, int move, const Transition* actions,
|
||||||
|
|
Loading…
Reference in New Issue