* Update freqs for missing tags in ner, for serializer

This commit is contained in:
Matthew Honnibal 2015-07-23 01:17:11 +02:00
parent 12699a1152
commit d5255aad77

View File

@ -85,6 +85,9 @@ cdef class BiluoPushDown(TransitionSystem):
elif gold.c.ner[i].move == OUT:
self.freqs[ENT_IOB][1] += 1
self.freqs[ENT_TYPE][0] += 1
else:
self.freqs[ENT_IOB][1] += 1
self.freqs[ENT_TYPE][0] += 1
cdef Transition lookup_transition(self, object name) except *:
if name == '-':