module Myasorubka::Mystem
Constants
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