mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* 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:
|
||||
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 == '-':
|
||||
|
|
Loading…
Reference in New Issue
Block a user