本地编译安装哈工大ltp(系统为ubuntu12.04.1 LTS)
1、安装git,cmake工具 运行sudo apt-get install cmake(ubuntu)
2、运行git clone https://github.com/HIT-SCIR/pyltp
3、Cd到pyltp目录运行git submodule init ,git submodule update
4、Cd到pyltp/ltp 进行编译./configure(如果没有权限就加权限)然后运行命令make
5、在http://pan.baidu.com/share/link?shareid=1988562907&uk=2738088569找对应程序版本的模型并覆盖pyltp/ltp_data
6、回到pyltp根目录依次执行python setup.py build,python setup install.
7、安完了打开python客户端能import pyltp不报错则成功安装。
浙公网安备 33010602011771号