def __init__(self, word): word = Text(word) self.word = word.tag_layer().morph_analysis["lemma"][0][0] self.form = VerbiForm()
def get_postag(word): word = Text(word) postag = word.tag_layer().morph_analysis["partofspeech"][0][0] return postag