mirror of https://github.com/explosion/spaCy.git
Fix lemma clobbering
This commit is contained in:
parent
6fdffd7246
commit
75e1618ec3
|
@ -425,7 +425,7 @@ class Tagger(Pipe):
|
|||
# Don't clobber preset lemmas
|
||||
lemma = doc.c[j].lemma
|
||||
vocab.morphology.assign_tag_id(&doc.c[j], tag_id)
|
||||
if lemma != 0:
|
||||
if lemma != 0 and lemma != doc.c[j].lex.orth:
|
||||
doc.c[j].lemma = lemma
|
||||
idx += 1
|
||||
if tensors is not None:
|
||||
|
|
Loading…
Reference in New Issue