sphinx系列之中文分词LibMMSeg安装(三)
时间:2010-11-14 来源:Done
先从http://www.coreseek.cn/news/7/99/ 上下载到LibMMSeg的安装包,如下:
wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.13.tar.gz -c
然后解压缩:
进入到mmseg所在文件夹,然后编译:
./configure --prefix=/usr/local/mmseg
编译过程中报了一个config.status: error: cannot find input file: src/Makefile.in这个的错误,然后运行下列指令再次编译就能通过了:
libtoolize --force
automake --add-missing
autoconf
autoheader
make clean
然后再进行编译和安装:
make && make install
把mmseg的命令加到环境变量中,然后运行mmseg,就能输入安装成功的信息了:
mmseg
Coreseek COS(tm) MM Segment 1.0
Copyright By Coreseek.com All Right Reserved.
Usage: mmseg <option> <file>
-u <unidict> Unigram Dictionary
-r Combine with -u, used a plain text build Unigram Dictionary, default Off
-b <Synonyms> Synonyms Dictionary
-t <thesaurus> Thesaurus Dictionary
-h print this help and exit
相关阅读 更多 +