Merge pull request #630 from YanhaoYang/master

Fixed bug: eg.guess is a tag id, rather than a tag
This commit is contained in:
Matthew Honnibal 2016-11-16 06:08:00 +11:00 committed by GitHub
commit 5c9597ffba

View File

@ -250,7 +250,7 @@ cdef class Tagger:
eg.c.features, eg.c.nr_feat)
self.model.updateC(&eg.c)
self.vocab.morphology.assign_tag(&tokens.c[i], eg.guess)
self.vocab.morphology.assign_tag_id(&tokens.c[i], eg.guess)
correct += eg.cost == 0
self.freqs[TAG][tokens.c[i].tag] += 1