mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
* Fix morphological assignment in doc.merge()
This commit is contained in:
parent
5e040855a5
commit
604ceac4c6
|
@ -471,8 +471,7 @@ cdef class Doc:
|
|||
# Update fields
|
||||
token.lex = lex
|
||||
token.spacy = self.data[end-1].spacy
|
||||
# What to do about morphology??
|
||||
# TODO: token.morph = ???
|
||||
self.vocab.morphology.assign_tag(token, self.vocab.strings[tag])
|
||||
token.tag = self.vocab.strings[tag]
|
||||
token.lemma = self.vocab.strings[lemma]
|
||||
if ent_type == 'O':
|
||||
|
|
Loading…
Reference in New Issue
Block a user