mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Relax rule-requirement in lemmatizer
This commit is contained in:
parent
b6b1e1aa12
commit
f0a7c99554
|
@ -35,7 +35,7 @@ class Lemmatizer(object):
|
|||
pos = 'adj'
|
||||
else:
|
||||
return string
|
||||
lemmas = lemmatize(string, self.index[pos], self.exc[pos], self.rules[pos])
|
||||
lemmas = lemmatize(string, self.index[pos], self.exc[pos], self.rules.get(pos, []))
|
||||
return min(lemmas)
|
||||
|
||||
def noun(self, string):
|
||||
|
|
Loading…
Reference in New Issue
Block a user