com.chenlb.mmseg4j.analysis.MMSegTokenizer重新编译
来源:互联网 发布:mysql 中文怎么设置 编辑:程序博客网 时间:2024/06/03 22:43
以下使用的是mmseg4j-1.9.1与lucene-4.10.2,由于在solr4.6中使用mmseg4j进行中文分词,如不对mmseg4j进行修改,将出现如下错误“TokenStream contract violation: reset()/close() call missing, reset() called multiple times, or subclass does not call super.reset(). Please see Javadocs of TokenStream class for more information about the correct consuming workflow.”;所以我们需要对mmseg4j进行重新编译,修改如下框中部分; ,修改后将重新编译的class文件拖回到原来的jar包中,jar包打开方式为rar。
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
import org.apache.lucene.analysis.tokenattributes.TypeAttribute;
以上引用都在lucene-core-4.10.2.jar中。
0 0
- com.chenlb.mmseg4j.analysis.MMSegTokenizer重新编译
- java.lang.NoSuchMethodError: com.chenlb.mmseg4j.analysis..<init>(Lcom/chenlb/mmseg4j/Seg;)V
- 重新分配COM口
- 重新认识COM的优点
- 对COM的重新认识
- 重新编译 vcl70.bpl
- 存储过程重新编译
- 重新编译索引
- 重新编译linux内核
- Open Cascade 重新编译
- devexpress 汉化 重新编译
- 重新编译内核指南
- eclipse 重新编译
- Oracle 重新编译对象
- eclipse 重新编译工程
- ant重新编译问题
- Eclipse不能重新编译
- eclipse 重新编译
- 神经网络1.1-Rosenblatt感知器引言
- 资源分享
- 常用vim学习网站
- 解决Unable to load R3 module ...VBoxDD.dll (VBoxDD):GetLastError=1790
- 字符串转数字
- com.chenlb.mmseg4j.analysis.MMSegTokenizer重新编译
- properties Editor for eclipse手工安装
- 权限
- python 初步练习
- 【转】C#实现Winform自定义半透明遮罩层
- mfc打开并显示指定文件
- Thrift问题集合,打算用Thrift作为生产工具的先看看这个
- Eclipse 安装最新SVN插件
- SUSE linux添加安装源