Package | Description |
---|---|
org.ansj.dic | |
org.ansj.domain | |
org.ansj.library |
Modifier and Type | Method and Description |
---|---|
List<Map.Entry<String,Double>> |
LearnTool.getTopTree(int num,
Nature nature) |
Modifier and Type | Field and Description |
---|---|
Nature |
TermNature.nature |
Nature |
TermNatures.nature
默认词性
|
static Nature |
Nature.NR |
static Nature |
Nature.NRF |
static Nature |
Nature.NULL |
static Nature |
Nature.NW |
Modifier and Type | Method and Description |
---|---|
Nature |
NewWord.getNature() |
Nature |
Term.natrue()
获得这个词的词性.词性计算后才可生效
|
Modifier and Type | Method and Description |
---|---|
void |
NewWord.setNature(Nature nature) |
void |
Term.setNature(Nature nature) |
void |
NewWord.update(Nature nature,
int freq)
更新发现权重,并且更新词性
|
Constructor and Description |
---|
NewWord(String name,
Nature nature) |
NewWord(String name,
Nature nature,
double score) |
Modifier and Type | Method and Description |
---|---|
static Nature |
NatureLibrary.getNature(String natureStr)
根据字符串得道词性.没有就创建一个
|
Modifier and Type | Method and Description |
---|---|
static int |
NatureLibrary.getTwoNatureFreq(Nature from,
Nature to)
获得两个词性之间的频率
|
Copyright © 2020. All rights reserved.