mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
* Clean up setting of tag in doc.from_bytes
This commit is contained in:
parent
9ec7b9c454
commit
116da5990a
|
@ -472,7 +472,6 @@ cdef class Doc:
|
|||
self.vocab.morphology.assign_tag(token, tag)
|
||||
else:
|
||||
token.tag = self.vocab.strings[tag]
|
||||
token.tag = self.vocab.strings[tag]
|
||||
token.lemma = self.vocab.strings[lemma]
|
||||
if ent_type == 'O':
|
||||
token.ent_iob = 2
|
||||
|
|
Loading…
Reference in New Issue
Block a user