def parse(str)
      node = MecabNode.new mecab_sparse_tonode(@mecab, str)
      result = []

      while !node.null? do
        if node.surface.empty?
          node = node.next
          next
        end
        result << node
        node = node.next
      end

      result
    end
def parse(str)
      node = MecabNode.new mecab_sparse_tonode(@mecab, str)
      result = []

      while !node.null? do
        if node.surface.empty?
          node = node.next
          next
        end
        result << node
        node = node.next
      end

      result
    end
Initialize the mecab tagger with the given option.

 How to specify options is as follows:

 @example
   mecab = Nameko::Mecab.new("-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd")
   mecab = Nameko::Mecab.new(["-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd"])
   mecab = Nameko::Mecab.new(["-d", "/usr/local/lib/mecab/dic/mecab-ipadic-neologd"])


 Parse the given string by MeCab.
 @param [String] str Parsed text
 @return [Array<MecabNode>] Result of Mecab parsing

 @example
   node = mecab.parse("私以外私じゃないの")[0]

   node.surface # => "私"
   node.feature #=> {:pos=>"名詞", :pos1=>"代名詞", :pos2=>"一般", :pos3=>"", :conjugation_form=>"", :conjugation=>"", :base=>"私", :yomi=>"ワタシ", :pronunciation=>"ワタシ"}
   node.posid #=> 59
   node.id #=> 1