mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Merge branch 'master' of https://github.com/explosion/spaCy
This commit is contained in:
commit
bf6a52a986
|
@ -269,8 +269,8 @@ cdef class Token:
|
|||
"""
|
||||
def __get__(self):
|
||||
if self.c.lemma == 0:
|
||||
lemma = self.vocab.morphology.lemmatizer.lookup(self.orth_)
|
||||
return lemma
|
||||
lemma_ = self.vocab.morphology.lemmatizer.lookup(self.orth_)
|
||||
return self.vocab.strings[lemma_]
|
||||
else:
|
||||
return self.c.lemma
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user