Files
SlimusMinus d33f0eaa78 fixed code
2026-08-05 01:44:29 +03:00

16 lines
231 B
Python

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