人気ブログランキング | 話題のタグを見る

日々のくだらない話題について


by jinotaro
カレンダー
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

MeCab+Hyper Estraierのインストール

検索エンジンHyper Estraierのインストールのための忘備録です。
Namazu+kakasiに比べてインデックス作成速度が1桁速く、検索精度も非常に良いです。

1.MeCabインストール
http://mecab.sourceforge.jp/ より mecab-0.93.tar.gzとmecab-ipadic-2.7.0-20060707.tar.gz(辞書)をダウンロード。

$ tar xzf mecab-0.93.tar.gz
$ cd mecab-0.93
$ ./configure
$ make
$ su
# make install
# exit
$ cd ..
$ tar xzf mecab-ipadic-2.7.0-20060707.tar.gz
$ cd mecab-ipadic-2.7.0-20060707
$ ./configure
$ make
$ su
# make install

2.libiconvインストール
ソースをダウンロードする。
http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz
$ tar xzf libiconv-1.11.tar.gz
$ cd libiconv-1.11
$ ./configure --prefix=/usr/local
$ make
$ su
# make install

3.qdbmインストール
http://qdbm.sourceforge.net/よりqdbm-1.8.71.tar.gzをダウンロード。
$ tar xzf qdbm-1.8.71.tar.gz
$ cd qdbm-1.8.71
$ ./configure
$ make
$ su
# make install

4.Hyper Estraierのインストール
http://hyperestraier.sourceforge.net/index.ja.htmlよりhyperestraier-1.4.5.tar.gzをダウンロードする。
$ tar xzf hyperestraier-1.4.5.tar.gz
$ cd hyperestraier-1.4.5
$ ./configure --enable-mecab
$ make
$ su
# make istall

5.検索データ作成
# estcmd gather -il ja -cl -sd -cm -kn 32 -um [datadir] [targetdir]
# estcmd optimize -cl [datadir]
by jinotaro | 2006-10-24 16:23 | server