Class: Ikku::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/ikku/parser.rb

Instance Method Summary collapse

Instance Method Details

#parse(text) ⇒ Object



6
7
8
9
10
# File 'lib/ikku/parser.rb', line 6

def parse(text)
  mecab.enum_parse(text).map do |mecab_node|
    Node.new(mecab_node)
  end.select(&:analyzable?)
end