* Pass tag_strings as a tuple, to support new Tokens API

This commit is contained in:
Matthew Honnibal 2015-01-31 13:43:37 +11:00
parent 77d62d0179
commit 024cfd485c
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ cdef class EnPosTagger:
scores = self.model.score(context)
tokens.data[i].tag = arg_max(scores, self.model.n_classes)
self.set_morph(i, tokens.data)
tokens._tag_strings = self.tag_names
tokens._tag_strings = tuple(self.tag_names)
tokens.is_tagged = True
def train(self, Tokens tokens, object gold_tag_strs):