Skip to content
Brooke M. Fujita edited this page Apr 14, 2015 · 4 revisions

What is natto?

A gem leveraging FFI (foreign function interface), natto combines the Ruby programming language with MeCab, the part-of-speech and morphological analyzer for the Japanese language.

  • natto provides a naturally Ruby-esque interface to MeCab.
  • It runs on both CRuby (mri/yarv) and JRuby (jvm).
  • It works with MeCab installations on Windows, Unix/Linux and OS X.
  • No compiler is necessary, as natto is not a C extension.

Wiki Pages

  1. Requirements
  2. Installation and Configuration
  3. Usage
    1. とりあえず使ってみよう!
    2. わかち書き Parsing
    3. N-Best 読み
    4. 振り仮名変換
    5. 出力フォーマットの指定
    6. 制約付き解析(部分解析)
  4. Why Even Bother?

Appendices

Appendix A: API-Documentation

Appendix B: Supported MeCab Options

Appendix C: Node Parsing and stat

Appendix D: Node Parsing and char_type

Appendix E: Node Parsing and IPADIC Part-of-Speech ID

Appendix F: Output Formatting

Appendix G: Building libmecab.dll on 64-bit Windows

Clone this wiki locally