|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.corpus.dictionary.SuffixDictionary
public class SuffixDictionary
后缀树词典
| 构造方法摘要 | |
|---|---|
SuffixDictionary()
|
|
| 方法摘要 | |
|---|---|
void |
add(String word)
添加一个词语 |
void |
addAll(String total)
|
void |
addAll(String[] total)
|
boolean |
endsWith(String word)
词语是否以该词典中的某个单词结尾 |
Set<Map.Entry<String,Integer>> |
entrySet()
键值对 |
int |
get(String suffix)
查找是否有该后缀 |
int |
getLongestSuffixLength(String word)
获取最长的后缀 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SuffixDictionary()
| 方法详细信息 |
|---|
public void add(String word)
word - public void addAll(String total)
public void addAll(String[] total)
public int get(String suffix)
suffix -
public boolean endsWith(String word)
word -
public int getLongestSuffixLength(String word)
word -
public Set<Map.Entry<String,Integer>> entrySet()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||