IK分词源码下载地址:https://code.google.com/p/ik-analyzer/downloads/list
lucene源码下载地址:http://www.eu.apache.org/dist/lucene/java/
下载IK分词源码后,运行出现错误提示:
Analyzer cannot be resolved to a type TokenStream cannot be resolved to a type OffsetAttribute cannot be resolved to a type OffsetAttribute cannot be resolved to a type CharTermAttribute cannot be resolved to a type CharTermAttribute cannot be resolved to a type TypeAttribute cannot be resolved to a type TypeAttribute cannot be resolved to a type
解决办法:
在项目project -->clean 下即可
自定义分词规则步骤:
时间: 2024-11-09 18:12:56