mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Fix spacy attr on merged tokens
This commit is contained in:
parent
430e2edb96
commit
78a9068319
|
@ -364,6 +364,7 @@ cdef class Doc:
|
||||||
cdef TokenC* token = &self.data[start]
|
cdef TokenC* token = &self.data[start]
|
||||||
# Update fields
|
# Update fields
|
||||||
token.lex = lex
|
token.lex = lex
|
||||||
|
token.spacy = self.data[end].spacy
|
||||||
# What to do about morphology??
|
# What to do about morphology??
|
||||||
# TODO: token.morph = ???
|
# TODO: token.morph = ???
|
||||||
token.tag = self.vocab.strings[tag]
|
token.tag = self.vocab.strings[tag]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user