mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix parser oracle
This commit is contained in:
parent
46b6197248
commit
38ad6c7b6a
|
@ -70,6 +70,8 @@ cdef class TransitionSystem:
|
|||
return state
|
||||
|
||||
def get_oracle_sequence(self, Example example, _debug=False):
|
||||
if not self.has_gold(example):
|
||||
return []
|
||||
states, golds, _ = self.init_gold_batch([example])
|
||||
if not states:
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue
Block a user