|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.hankcs.hanlp.corpus.dictionary.EasyDictionary.Attribute
public static class EasyDictionary.Attribute
通用词典中的词属性
字段摘要 | |
---|---|
int[] |
frequency
词性对应的词频 |
Nature[] |
nature
词性列表 |
int |
totalFrequency
|
构造方法摘要 | |
---|---|
EasyDictionary.Attribute(int size)
|
|
EasyDictionary.Attribute(Nature nature)
使用单个词性,默认词频1000构造 |
|
EasyDictionary.Attribute(Nature[] nature,
int[] frequency)
|
|
EasyDictionary.Attribute(Nature nature,
int frequency)
|
方法摘要 | |
---|---|
int |
getNatureFrequency(Nature nature)
获取词性的词频 |
int |
getNatureFrequency(String nature)
已过时。 推荐使用Nature参数! |
String |
toString()
|
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
public Nature[] nature
public int[] frequency
public int totalFrequency
构造方法详细信息 |
---|
public EasyDictionary.Attribute(int size)
public EasyDictionary.Attribute(Nature[] nature, int[] frequency)
public EasyDictionary.Attribute(Nature nature, int frequency)
public EasyDictionary.Attribute(Nature nature)
nature
- 方法详细信息 |
---|
public int getNatureFrequency(String nature)
nature
- 字符串词性
public int getNatureFrequency(Nature nature)
nature
- 词性
public String toString()
Object
中的 toString
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |