mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +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
|
# 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':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user