mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +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