|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.wltea.analyzer.core.IKSegmenter
public final class IKSegmenter
IK分词器主类
构造方法摘要 | |
---|---|
IKSegmenter(java.io.Reader input,
boolean useSmart)
IK分词器构造函数 |
|
IKSegmenter(java.io.Reader input,
Configuration cfg)
IK分词器构造函数 |
方法摘要 | |
---|---|
Lexeme |
next()
分词,获取下一个词元 |
void |
reset(java.io.Reader input)
重置分词器到初始状态 |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public IKSegmenter(java.io.Reader input, boolean useSmart)
input
- useSmart
- 为true,使用智能分词策略
非智能分词:细粒度输出所有可能的切分结果
智能分词: 合并数词和量词,对分词结果进行歧义判断public IKSegmenter(java.io.Reader input, Configuration cfg)
input
- cfg
- 使用自定义的Configuration构造分词器方法详细信息 |
---|
public Lexeme next() throws java.io.IOException
java.io.IOException
public void reset(java.io.Reader input)
input
-
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |