Class: YandexMystem::Raw

Inherits:
Base
  • Object
show all
Defined in:
lib/yandex_mystem.rb

Constant Summary collapse

ARGUMENTS =
'-e utf-8 -ig -n --weight --format json --eng-gr'

Class Method Summary collapse

Methods inherited from Base

command, command_postfix, stem

Class Method Details

.parse(data) ⇒ Object



60
61
62
# File 'lib/yandex_mystem.rb', line 60

def self.parse(data)
  JSON.parse('[' + data.split("\n").join(",") + ']', :symbolize_names => true)
end