require "rexml/document" require "open-uri" require 'MeCab' module MeCab class Node def category return self.feature.split(/,/)[0] end def each(&b) b[self] self.next.each(&b) if self.next end end end class Status text, :screen_name => screen_name) if status.save # DBã«æ¿å ¥ p "SUCCESS" else p "FAILED" end end end def self.parse m = MeCab::Tagger.new h={} Status.find(:all).each do |s| nodes = m.parseTo
{{#tags}}- {{label}}
{{/tags}}