mirror of https://github.com/explosion/spaCy.git
* 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)
|
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.lemma = self.vocab.strings[lemma]
|
token.lemma = self.vocab.strings[lemma]
|
||||||
if ent_type == 'O':
|
if ent_type == 'O':
|
||||||
token.ent_iob = 2
|
token.ent_iob = 2
|
||||||
|
|
Loading…
Reference in New Issue