Skip to content
Brooke M. Fujita edited this page Mar 28, 2015 · 4 revisions

What is natto?

natto combines the Ruby programming language with MeCab, the part-of-speech and morphological analyzer for the Japanese language.

  • natto is a gem bridging Ruby and MeCab using FFI (foreign function interface)
  • No compiler is necessary, as natto is not a C extension
  • It will run on CRuby (mri/yarv) and JRuby (jvm) equally well
  • It will work with MeCab installations on Windows, Unix/Linux or Mac OS
  • natto provides a naturally Ruby-esque interface to MeCab.

Wiki Pages

  1. Requirements
  2. Installation and Configuration
  3. Usage
    1. とりあえず使ってみよう!
    2. わかち書き Parsing
    3. N-Best 読み
    4. 振り仮名変換
    5. 出力フォーマットの指定
  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