Skip to content

Instantly share code, notes, and snippets.

@osak
Created May 18, 2013 14:01
Show Gist options
  • Save osak/5604499 to your computer and use it in GitHub Desktop.
Save osak/5604499 to your computer and use it in GitHub Desktop.
#!/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
Copy link

taiki45 commented May 18, 2013

たいたいたい~w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment