From 95282d4993c272748431eb939041749399072cb6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 11 Nov 2014 21:11:17 +1100 Subject: [PATCH] * Use the dynamic oracle 'follow' strategy --- spacy/ner/greedy_parser.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/ner/greedy_parser.pyx b/spacy/ner/greedy_parser.pyx index 2838a2837..9812eba2f 100644 --- a/spacy/ner/greedy_parser.pyx +++ b/spacy/ner/greedy_parser.pyx @@ -100,7 +100,7 @@ cdef class NERParser: self.extractor.count(counts[guess.clas], self._feats, -1) self.model.update(counts) gold_str = self.tag_names[gold.clas] - transition(s, gold) + transition(s, guess) tokens.ner[s.i-1] = s.tags[s.i-1] return n_correct