* Fix morphological assignment in doc.merge()

This commit is contained in:
Matthew Honnibal 2015-11-03 17:57:51 +11:00
parent 5e040855a5
commit 604ceac4c6

View File

@ -471,8 +471,7 @@ cdef class Doc:
# Update fields # Update fields
token.lex = lex token.lex = lex
token.spacy = self.data[end-1].spacy token.spacy = self.data[end-1].spacy
# What to do about morphology?? self.vocab.morphology.assign_tag(token, self.vocab.strings[tag])
# TODO: token.morph = ???
token.tag = self.vocab.strings[tag] token.tag = self.vocab.strings[tag]
token.lemma = self.vocab.strings[lemma] token.lemma = self.vocab.strings[lemma]
if ent_type == 'O': if ent_type == 'O':