Call morphology.assign_untagged when pushing token to Doc

This commit is contained in:
Matthew Honnibal 2017-10-11 03:23:57 +02:00
parent c15d8278cb
commit 3b527fa52b

View File

@ -512,6 +512,8 @@ cdef class Doc:
assert t.lex.orth != 0
t.spacy = has_space
self.length += 1
# Set morphological attributes, e.g. by lemma, if possible
self.vocab.morphology.assign_untagged(t)
self._py_tokens.append(None)
return t.idx + t.lex.length + t.spacy