$ sudo apt-get install build-essential
$ tar -xzf mecab-0.97.tar.gz $ cd mecab-0.97 $ ./configure --with-charset=utf8 $ make $ make check $ sudo make install
$ tar -xzf mecab-ipadic-2.7.0-20070801.tar.gz $ cd mecab-ipadic-2.7.0-20070801/ $ make $ sudo make install
$ sudo gedit /etc/ld.so.conf
最終行に次を追加 /usr/local/lib
$ tar -xzf darts-0.32.tar.gz $ cd darts-0.32/ $ ./configure $ make $ sudo make install
$ tar -xzf chasen-2.4.4.tar.gz $ cd chasen-2.4.4/ $ ./configure $ make $ sudo make install
IPADICをインストール
$ tar -xzf ipadic-2.7.0.tar.gz $ cd ipadic-2.7.0/ $ ./configure $ make $ sudo make install
またはNAIST-jdic
$ tar -xzf naist-jdic-0.4.3.tar.gz $ cd naist-jdic-0.4.3/ $ ./configure $ make $ sudo make install
ーhttp://download.unidic.org/ へいって、ユーザ登録。
$ tar -xzf unidic-1.3.9-pkg.tar.gz $ cd unidic-1.3.9-pkg/ $ ./configure $ make $ sudo make install
**3.UniDicを使って解析
$ mecab -d /usr/local/unidic/dic/unidic-mecab FILE
$ chasen -i w -r /usr/local/unidic/dic/unidic-chasen FILE
$ cd /usr/local/unidic/ $ ./chauni -t FILE
usage: chauni [Options] file ... where Options are -c: Use chasen for morphological analysis [default=yes] -m: Use mecab for morphological analysis [default=no] -z: Use han2zen (unavailable with mecab) [default=no] -n: Use numtrans (unavailable with mecab) [default=no] -p: Use chaone (unavailable with mecab) [default=no] -t: Use xml2txt (unavailable with mecab) [default=no] -a: Use all of z, n, p, and t