From d5255aad77a0392d344a683d247053f1c592fe6e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 23 Jul 2015 01:17:11 +0200 Subject: [PATCH] * Update freqs for missing tags in ner, for serializer --- spacy/syntax/ner.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index 8f6a662e8..fbd580b29 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -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 == '-':