Sha256: 176cc20652fa4aa82a6f2e5d3e3e3e6bc1299d1d22d3c9ee77f1eb149c64a40f
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 Bytes
Contents
require "kconv" $LOAD_PATH.unshift(File.expand_path("../", __FILE__)) require "mecab-modern/version" module MeCab class Tagger alias_method :parseToNode_org, :parseToNode private :parseToNode_org def parseToNode(*args) node = parseToNode_org(*args) nodes = [] while node nodes.push(node) node = node.next end return nodes[1, nodes.size - 2] end end class Node alias_method :feature_org, :feature alias_method :surface_org, :surface private :feature_org private :surface_org def feature ; feature_org.toutf8 end def surface ; surface_org.toutf8 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mecab-modern-0.0.1 | lib/mecab-modern.rb |