0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Mac Homebrewでmecabを使う

Posted at

https://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/
から辞書 mecab-ipadic-2.7.0-20070801.tar.gz をダウンロード。

brew install mecab

tar xf mecab-ipadic-2.7.0-20070801.tar.gz
cd mecab-ipadic-2.7.0-20070801
./configure && make && make install

動作確認

$ echo 私は学校に行きます | nkf -e | mecab | nkf -w
私	名詞,代名詞,一般,*,*,*,私,ワタシ,ワタシ
は	助詞,係助詞,*,*,*,*,は,ハ,ワ
学校	名詞,一般,*,*,*,*,学校,ガッコウ,ガッコー
に	助詞,格助詞,一般,*,*,*,に,ニ,ニ
行き	動詞,自立,*,*,五段・カ行促音便,連用形,行く,イキ,イキ
ます	助動詞,*,*,*,特殊・マス,基本形,ます,マス,マス
EOS

参考

ビルド時に --with-charset=utf8 をつけておけばUTF-8になるらしい。
【Linux】Mecabの文字化けを直す - Qiita

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?