Install Mecab - jzohrab/lute GitHub Wiki


This documentation is deprecated/obsolete. Lute v2 has been replaced by Lute v3, a full Python rewrite. Please see the Lute v3 manual which includes notes on installation. If you have Lute v2, you can easily migrate to v3. Thank you!


Lute users who are studying Japanese will need to install MeCab and an appropriate dictionary for parsing Japanese text. If MeCab is not installed or not on your PATH, you will not be able to parse Japanese texts.

Mac

You can install MeCab and a dictionary using homebrew:

brew install mecab
brew install mecab-ipadic

Windows

better instructions needed! Let me know if you have any hints.

On Windows, Lute tests a few places for MeCab:

where /R "%ProgramFiles%\\MeCab\\bin" mecab.exe'
where /R "%ProgramFiles(x86)%\\MeCab\\bin" mecab.exe'
where mecab.exe

Linux

Use apt-get:

sudo apt-get update -y
sudo apt-get install -y mecab mecab-ipadic-utf8

Testing your MeCab installation

Test mecab from the terminal:

$ mecab
ใ™ใ‚‚ใ‚‚ใ‚‚ใ‚‚ใ‚‚ใ‚‚ใ‚‚ใ‚‚ใฎใ†ใก
ใ™ใ‚‚ใ‚‚    ๅ่ฉž,ไธ€่ˆฌ,*,*,*,*,ใ™ใ‚‚ใ‚‚,ใ‚นใƒขใƒข,ใ‚นใƒขใƒข
ใ‚‚    ๅŠฉ่ฉž,ไฟ‚ๅŠฉ่ฉž,*,*,*,*,ใ‚‚,ใƒข,ใƒข
ใ‚‚ใ‚‚    ๅ่ฉž,ไธ€่ˆฌ,*,*,*,*,ใ‚‚ใ‚‚,ใƒขใƒข,ใƒขใƒข

Windows users may need to type the full path.

โš ๏ธ **GitHub.com Fallback** โš ๏ธ