|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.hankcs.hanlp.dictionary.CoreDictionary
public class CoreDictionary
使用DoubleArrayTrie实现的核心词典
嵌套类摘要 | |
---|---|
static class |
CoreDictionary.Attribute
核心词典中的词属性 |
字段摘要 | |
---|---|
static int |
M_WORD_ID
|
static int |
NR_WORD_ID
|
static int |
NS_WORD_ID
|
static int |
NT_WORD_ID
|
static int |
NX_WORD_ID
|
static String |
path
|
static int |
T_WORD_ID
|
static int |
totalFrequency
|
static DoubleArrayTrie<CoreDictionary.Attribute> |
trie
|
static int |
X_WORD_ID
|
构造方法摘要 | |
---|---|
CoreDictionary()
|
方法摘要 | |
---|---|
static boolean |
contains(String key)
是否包含词语 |
static CoreDictionary.Attribute |
get(int wordID)
获取条目 |
static CoreDictionary.Attribute |
get(String key)
获取条目 |
static int |
getTermFrequency(String term)
获取词频 |
static int |
getWordID(String a)
获取词语的ID |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static DoubleArrayTrie<CoreDictionary.Attribute> trie
public static final String path
public static final int totalFrequency
public static final int NR_WORD_ID
public static final int NS_WORD_ID
public static final int NT_WORD_ID
public static final int T_WORD_ID
public static final int X_WORD_ID
public static final int M_WORD_ID
public static final int NX_WORD_ID
构造方法详细信息 |
---|
public CoreDictionary()
方法详细信息 |
---|
public static CoreDictionary.Attribute get(String key)
key
-
public static CoreDictionary.Attribute get(int wordID)
wordID
-
public static int getTermFrequency(String term)
term
-
public static boolean contains(String key)
key
-
public static int getWordID(String a)
a
-
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |