Created
May 18, 2013 14:01
-
-
Save osak/5604499 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'MeCab' | |
#GC.disable | |
loop do | |
node = ::MeCab::Tagger.new.parseToNode("たいたいたい~w") | |
while node | |
unless node.surface.empty? | |
puts "#{node.surface}" | |
end | |
node = node.next | |
end | |
end |
taiki45
commented
May 18, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment