Java调用ICTCLAS2015
2015-09-08 09:56
459 查看
最近老板让做分词,指定使用ICTCLAS,于是到官网下载了2015,鼓捣了一晚上也没弄出来,百度了一上午还是一头雾水,
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
,幸运的是现在已经弄好了,趁着没忘赶紧写下来。
3、找到20150805111452_20150702124141_ICTCLAS2015 (1).zip\汉语分词20140928\lib - 解包大小为 168.6 MB文件,对号入座,
我的是64位,就将win64 中的文件拷贝至步骤2中的JnaTest_NLPIR中(里边已经有一个dll 文件,直接覆盖就行)。
4、检查你的工程文件是否报错,很有可能jar包报错,自己bulidpath一下就行。
至此就可以运行一下工程文件中src/code/NlpirTest.java文件,幸运的一般就可以用了,不过绝大部分是不行的会报错“初始化失败”,原因是工程文件夹中的data文件不是最新的,只需把20150805111452_20150702124141_ICTCLAS2015 (1).zip\汉语分词20140928\Data
- 解包大小为 168.6 MB,文件中的内容替换掉工程的data内容就行(你会发现99.9999999%的人是不幸的)。
(回头看来挺简单的,只是当时没搞懂,忧伤郁闷中。。。。。。。)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
,幸运的是现在已经弄好了,趁着没忘赶紧写下来。
1、首先解压并找到:20150805111452_20150702124141_ICTCLAS2015 (1).zip\汉语分词20140928\sample\Java\JNA - 解包大小
为 168.6 MB。
2、JNA下有个JnaTest_NLPIR文件夹,复制出来放到你的Eclipse工程文件夹下,并导入eclipse中。3、找到20150805111452_20150702124141_ICTCLAS2015 (1).zip\汉语分词20140928\lib - 解包大小为 168.6 MB文件,对号入座,
我的是64位,就将win64 中的文件拷贝至步骤2中的JnaTest_NLPIR中(里边已经有一个dll 文件,直接覆盖就行)。
4、检查你的工程文件是否报错,很有可能jar包报错,自己bulidpath一下就行。
至此就可以运行一下工程文件中src/code/NlpirTest.java文件,幸运的一般就可以用了,不过绝大部分是不行的会报错“初始化失败”,原因是工程文件夹中的data文件不是最新的,只需把20150805111452_20150702124141_ICTCLAS2015 (1).zip\汉语分词20140928\Data
- 解包大小为 168.6 MB,文件中的内容替换掉工程的data内容就行(你会发现99.9999999%的人是不幸的)。
(回头看来挺简单的,只是当时没搞懂,忧伤郁闷中。。。。。。。)
相关文章推荐
- java对世界各个时区(TimeZone)的通用转换处理方法(转载)
- java-注解annotation
- java-模拟tomcat服务器
- java-用HttpURLConnection发送Http请求.
- java-WEB中的监听器Lisener
- Android IPC进程间通讯机制
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- 介绍一款信息管理系统的开源框架---jeecg
- 聚类算法之kmeans算法java版本
- java实现 PageRank算法
- PropertyChangeListener简单理解
- 插入排序
- 冒泡排序
- 堆排序
- 快速排序
- 二叉查找树
- [原创]java局域网聊天系统