分词
来源:互联网 发布:ubuntu智能手机 编辑:程序博客网 时间:2024/04/20 11:07
访问 http://maven.nlpcn.org/org/ansj/ 最好下载最新版 ansj_seg/
如果你用的是1.x版本需要下载tree_split.jar。
如果你用的是2.x版本需要下载nlp-lang.jar。
如果你用的是1.x版本需要下载tree_split.jar。
如果你用的是2.x版本需要下载nlp-lang.jar。
如果你用的是3.x以上版本只需要下载 ansj_seg-[version]-all-in-one.jar 一个jar包就行。
public List<String> wordDictionary() {
List<String> wordDic = new ArrayList<>();
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
//读取数据库信息
}
catch()
{
}
finally
{
}
}
List<String> wordDic = wordDictionary();
for (int i = 0; i < wordDic.size(); i++) {
UserDefineLibrary.insertWord(wordDic.get(i),"n",1000)
}
public String toStringWithOutNature() {
return this.toStringWithOutNature(",");
}
阅读全文
0 0
- 分词
- 分词
- 分词
- 分词
- 分词
- 分词
- 分词
- 分词:分词词典CIPP_JS
- lucene分词器分词
- PHP分词
- 中文分词
- 中文分词
- 中文分词
- lucene分词
- Java分词
- 分词系统
- 中文分词
- 中文分词
- MySql数据库索引原理
- 虚拟机共享主机网络的相关配置的小记录
- Ionic1x实现简单的评论星级组件
- keychain
- 彻底删除顽固dll文件
- 分词
- CSS清除浮动及垂直水平居中,思维导图
- Redis 数据类型及命令操作
- Elementory OS下通过wine安装Tim
- 判断链表相交
- Eclipse中如何创建Maven项目
- 第3周项目1(2)-顺序表的基本运算
- EL表达式中使用函数
- C语言交换两个变量的值