哈工大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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列...
    小迈克阅读 8,150评论 1 3
  • # Awesome Python [![Awesome](https://cdn.rawgit.com/sindr...
    emily_007阅读 6,605评论 0 3
  • 我愿是满山的杜鹃,只为一次无憾的春天。 我愿是繁星,舍给一个夏天的夜晚。 我愿是千万条江河,流向唯一的海洋。 我愿...
    Daisy倾夕阅读 1,449评论 0 0
  • 曾经在遥远的地方有个村落,那里人烟稀少但充满了快乐。 很快,这个快乐村落便有了些名声,很多想让生活更加快乐的人加入...
    张苏木阅读 1,794评论 0 0
  • 在那美丽的清漳河畔 有我心中最美的故乡 所有童年的欢乐时光 总有清漳河深情拥抱 长大后常常身不由己 为追梦不惜远走...
    路雨飞飞阅读 2,865评论 0 2