哈工大LTPjava本地版安装笔记

LTP4j安装笔记

LTP本地使用 http://ltp.readthedocs.io/zh_CN/latest/index.html 

最新相关博客:http://blog.csdn.net/churximi/article/details/51174182 

LTP4j:http://ltp4j.readthedocs.io/en/neoltp4j/

使用ltp-server 

https://github.com/HIT-SCIR/ltp/wiki/%E4%BD%BF%E7%94%A8ltp_server

编译ltp4j 

git clone https://github.com/HIT-SCIR/ltp4j.git 

cd ltp4j/ 

git submodule init 

git submodule update 

cd ltp/ 

git checkout master 

sh configure 

make 

cd .. 

cmake -DLTP_HOME=”$PWD”/ltp/ . 

make 

ant 

export LD_LIBRARY_PATH=LD_LIBRARY_PATH:”$PWD"/libs:"$PWD”/ltp/lib 

编译neoltp4j 

git clone https://github.com/HIT-SCIR/ltp4j.git 

cd ltp4j 

git checkout neoltp4j 

git submodule init 

git submodule update 

mvn

ltp官方文档: 

https://github.com/HIT-SCIR/ltp4j/blob/master/doc/ltp4j-document-1.0.md

ltp-server 

http://blog.csdn.net/u010161379/article/details/51260157

ltp4j和C++代理程序编译(windows版) 

http://codepub.cn/2015/05/07/Compile-the-Language-Technology-Platform(C++)-and-LTP4J(Java)source-code/

在mac下安装ltp成功,但是编译java调用的动态库出现错误,转而使用maven 

https://github.com/HIT-SCIR/ltp/issues/202

ltp4j编译maven版 

https://ltp4j.readthedocs.io/en/neoltp4j/install.html#id3

Maven安装nar插件,注意选择支持jdk1.6的版本3.2.3,检测到文件名冲突,重命名解决,最终仍然有报错,但可编译出target,需检查是否可用 

NAR: Compile failed: Output filename conflict

maven编译包gcc错误NAR: Compile failed: g++ failed with return code 1 

mvn -Pwnosign -Dnar.cores=1 -Dmaven.test.skip=true 

参数来源:https://github.com/tada/pljava/issues/63

https://gist.github.com/emchristiansen/6845954 

cmake3.x 在mac环境下找不到java环境;

‘jni.h’ file not found 

mac的jdk1.6目录下没有include包,copy一个;

mac下编译没有出现libs下的动态库,回归ltp4j 

https://www.neofung.org/2017/04/12/Linux-%E7%BC%96%E8%AF%91ltp4j%E5%92%8Cneoltp4j/

window下python调用 

http://blog.csdn.net/informationscience/article/details/76850652

你可能感兴趣的:(哈工大LTPjava本地版安装笔记)