mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 11:53:09 +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 Transition lookup_transition(self, object name) except *:
|
||||||
cdef attr_t label
|
cdef attr_t label
|
||||||
if name == '-' or name == None:
|
if name == '-' or name == None:
|
||||||
move_str = 'M'
|
return Transition(clas=0, move=MISSING, label=0, score=0)
|
||||||
label = 0
|
|
||||||
elif name == '!O':
|
elif name == '!O':
|
||||||
return Transition(clas=0, move=ISNT, label=0, score=0)
|
return Transition(clas=0, move=ISNT, label=0, score=0)
|
||||||
elif '-' in name:
|
elif '-' in name:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user