mirror of https://github.com/explosion/spaCy.git
* Update freqs for missing tags in ner, for serializer
This commit is contained in:
parent
12699a1152
commit
d5255aad77
|
@ -85,6 +85,9 @@ cdef class BiluoPushDown(TransitionSystem):
|
||||||
elif gold.c.ner[i].move == OUT:
|
elif gold.c.ner[i].move == OUT:
|
||||||
self.freqs[ENT_IOB][1] += 1
|
self.freqs[ENT_IOB][1] += 1
|
||||||
self.freqs[ENT_TYPE][0] += 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 *:
|
cdef Transition lookup_transition(self, object name) except *:
|
||||||
if name == '-':
|
if name == '-':
|
||||||
|
|
Loading…
Reference in New Issue