mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
* Fix assign_tag in doc.merge
This commit is contained in:
parent
dde9e1357c
commit
9e37437ba8
|
@ -473,7 +473,7 @@ cdef class Doc:
|
||||||
token.lex = lex
|
token.lex = lex
|
||||||
token.spacy = self.data[end-1].spacy
|
token.spacy = self.data[end-1].spacy
|
||||||
if tag in self.vocab.morphology.tag_map:
|
if tag in self.vocab.morphology.tag_map:
|
||||||
self.vocab.morphology.assign_tag(token, self.vocab.strings[tag])
|
self.vocab.morphology.assign_tag(token, tag)
|
||||||
else:
|
else:
|
||||||
token.tag = self.vocab.strings[tag]
|
token.tag = self.vocab.strings[tag]
|
||||||
token.tag = self.vocab.strings[tag]
|
token.tag = self.vocab.strings[tag]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user