fixed code
This commit is contained in:
@@ -3,18 +3,13 @@ import pymorphy3
|
||||
|
||||
class Lemmatizer:
|
||||
|
||||
|
||||
def __init__(self):
|
||||
|
||||
self.morph = pymorphy3.MorphAnalyzer()
|
||||
|
||||
|
||||
|
||||
def normalize(
|
||||
self,
|
||||
word: str
|
||||
) -> str:
|
||||
|
||||
result = self.morph.parse(word)
|
||||
|
||||
return result[0].normal_form
|
||||
return result[0].normal_form
|
||||
|
||||
Reference in New Issue
Block a user