Registry / utility / natto
library1.2.0rbrubygemsunverified

Provides a naturally Ruby-esque interface to MeCab, a Japanese morphological analyzer, running on CRuby and JRuby.

gem install natto
INSTALL
IMPORT
SIG · NATTO
N
natto
utilityrubyv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Natto
require 'natto'

Parses a Japanese sentence and prints each token.

require 'natto' natto = Natto::MeCab.new natto.parse('すもももももももものうち') do |node| puts node.surface end
Debug
Known issues
gotchaRequires MeCab to be installed on the system.
fix
Install MeCab via your package manager (e.g., apt-get install mecab mecab-ipadic-utf8).
affects: >= 0.0.0
Upgrade
Version history
1.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
natto — gem install natto · libregistry