Move weight serialization to Thinc

This commit is contained in:
Matthew Honnibal 2017-06-01 03:04:36 -05:00
parent ae8010b526
commit 53d00a0371

View File

@ -279,6 +279,7 @@ class NeuralTagger(object):
else:
new_tag_map[tag] = {POS: X}
cdef Vocab vocab = self.vocab
if new_tag_map:
vocab.morphology = Morphology(vocab.strings, new_tag_map,
vocab.morphology.lemmatizer)
token_vector_width = pipeline[0].model.nO