public class LearnTool extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
count
告诉大家你学习了多少个词了
|
boolean |
isAsianName
是否开启学习机
|
boolean |
isForeignName |
| Constructor and Description |
|---|
LearnTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
active(String name)
尝试激活,新词
|
void |
addTerm(NewWord newWord)
增加一个新词到树中
|
org.nlpcn.commons.lang.tire.domain.SmartForest<NewWord> |
getForest() |
List<Map.Entry<String,Double>> |
getTopTree(int num)
返回学习到的新词.
|
List<Map.Entry<String,Double>> |
getTopTree(int num,
Nature nature) |
void |
learn(Graph graph,
SplitWord splitWord)
公司名称学习.
|
public boolean isAsianName
public boolean isForeignName
public int count
public void addTerm(NewWord newWord)
newWord - public org.nlpcn.commons.lang.tire.domain.SmartForest<NewWord> getForest()
public List<Map.Entry<String,Double>> getTopTree(int num)
num - 返回数目.0为全部返回public void active(String name)
name - Copyright © 2017. All rights reserved.