Fix error in nlp module

This commit is contained in:
Aleksey Filippov 2022-01-25 16:09:40 +04:00
parent 4020ac2d35
commit 4cc180a326

View File

@ -20,4 +20,4 @@ class NLP:
if node.upos != 'NOUN':
continue
nouns.append(node)
return list(set([self.lemmatizer(noun.lemma) for noun in nouns]))
return list(set([self._lemmatizer(noun.lemma) for noun in nouns]))