Tag - 형태소분석

形态分析的安装和使用(PHP)

安装环境:CentOS7 Basic,PHP7 YUM安装GCC-C ++ Java-1.7.0-openjdk-Devel python-Devel Zlib-Devel openssl-Devel-Devel git-y WGET https://www.python.org/ftp/python/3.6.1/python-3.6.1.tgz TAR XF Python-3。* CD Python-3。* 。/配置 制作 制作Altinstall pip3.6安装jpype1-py3 pip3.6安装konlpy 光盘 .. WGET https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.2.tar.gz TAR ZXFV MECAB-0.996-KO-0.2.2.2.2.tar.gz CD MECAB-0.996-KO-0.9.2 。/配置 制作 进行安装 光盘 .. WGET https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.0.1-20150920.tar.gz TAR ZXFV MECAB-KO-DIC-2.0.0.1-20150920.TAR.GZ CD MECAB-KO-DIC-2.0.1-20150920 ./autogen.sh 。/配置 制作 进行安装 CD/USR/local/src/ git克隆https://github.com/rsky/php-mecab.git cd/usr/local/src/php-mecab/mecab phpize ./configure -with-php-config =/usr/bin/php-config -with-mecab =/usr/local/local/bin/mecab-config 制作 进行测试 进行安装 echo“扩展= mecab.so”> /etc/php.d/mecab.ini SystemCtl重新启动httpd.service PHP ...