Fix lookup of missing NER actions

This commit is contained in:
Matthew Honnibal 2017-09-14 16:59:45 +02:00
parent 664c5af745
commit 8c503487af

View File

@ -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: