module Myasorubka::Mystem

tech.yandex.ru/mystem/

Constants

GRAMMEMES

tech.yandex.ru/mystem/doc/grammemes-values-docpage/

Public Instance Methods

to_msd(grammemes) click to toggle source

Convert an array with mystem character-based grammemes into an MSD.

# File lib/myasorubka/mystem.rb, line 129
def to_msd(grammemes)
  grammemes = grammemes.map { |g| GRAMMEMES[g] }
  grammemes.compact!
  grammemes.map! { |g| Myasorubka::Mystem::Binary::GRAMMEMES.key(g) }
  Myasorubka::Mystem::Binary.to_msd(grammemes)
end