mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Fix lookup of missing NER actions
This commit is contained in:
parent
664c5af745
commit
8c503487af
|
@ -161,8 +161,7 @@ cdef class BiluoPushDown(TransitionSystem):
|
|||
cdef Transition lookup_transition(self, object name) except *:
|
||||
cdef attr_t label
|
||||
if name == '-' or name == None:
|
||||
move_str = 'M'
|
||||
label = 0
|
||||
return Transition(clas=0, move=MISSING, label=0, score=0)
|
||||
elif name == '!O':
|
||||
return Transition(clas=0, move=ISNT, label=0, score=0)
|
||||
elif '-' in name:
|
||||
|
|
Loading…
Reference in New Issue
Block a user