mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-03 13:14:11 +03:00
Call morphology.assign_untagged when pushing token to Doc
This commit is contained in:
parent
c15d8278cb
commit
3b527fa52b
|
@ -512,6 +512,8 @@ cdef class Doc:
|
||||||
assert t.lex.orth != 0
|
assert t.lex.orth != 0
|
||||||
t.spacy = has_space
|
t.spacy = has_space
|
||||||
self.length += 1
|
self.length += 1
|
||||||
|
# Set morphological attributes, e.g. by lemma, if possible
|
||||||
|
self.vocab.morphology.assign_untagged(t)
|
||||||
self._py_tokens.append(None)
|
self._py_tokens.append(None)
|
||||||
return t.idx + t.lex.length + t.spacy
|
return t.idx + t.lex.length + t.spacy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user