Yandex Mystem

Build Status Gem Version Bitdeli Badge

Version 3.0 not compatible with previous

Mystem 3.0 support JSON format, so we should use this option. This gem (yandex_mystem) now returns information in JSON-like ruby native format (array of hashes). More info about Mystem changes: http://api.yandex.ru/mystem/downloads/

Introduction

Mystem is a software that provided by the Yandex only for non-commercial project. With use of it you can detect base forms of the words in a text, make a simple morphological analysis of russian words.

Installation

gem install yandex_mystem

License

First of all, read license on http://api.yandex.ru/mystem/

Mystem available only for non-commercial usage.

OS

This gem contains executables for there platforms:

  • Windows 7 32-bit
  • Linux 3.5 32-bit
  • Linux 3.1 64-bit
  • Freebsd 9.0 64-bit

Note: Mystem 3.0 not support Mac OS X, sorry.

Usage

YandexMystem::Simple.stem 'О предложении в котором много слов.'
YandexMystem::Raw.stem 'нет сов'