Mystemex (Mystemex v0.2.1)

Copy Markdown View Source

Wrapper of the Yandex Mystem 3 morphological analyzer for Russian language. Source info: https://yandex.ru/dev/mystem/

Summary

Functions

Getting grammatical information and lemmas. For each word in the text you get Mystemex.Types.analysis_item() with linguistic information.

Lemmatization for text. Return list of lemmatized words. The words are ordered the same way as in the original text.

Lemmatization for one word. Return ONE lemmatized word.

Functions

analyze(text)

@spec analyze(binary()) :: Mystemex.Types.analyze_response()

Getting grammatical information and lemmas. For each word in the text you get Mystemex.Types.analysis_item() with linguistic information.

lemmatize(text)

@spec lemmatize(binary()) :: Mystemex.Types.lemmatize_response()

Lemmatization for text. Return list of lemmatized words. The words are ordered the same way as in the original text.

lemmatize_word(text)

@spec lemmatize_word(binary()) :: Mystemex.Types.lemmatize_word_response()

Lemmatization for one word. Return ONE lemmatized word.

If text with more than one word was passed, the first word processed will be returned.

Works a little faster if you really need to lemmatize one word.