mirror of https://github.com/explosion/spaCy.git
* Pass tag_strings as a tuple, to support new Tokens API
This commit is contained in:
parent
77d62d0179
commit
024cfd485c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue