|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.model.crf.CRFModel
public class CRFModel
| 字段摘要 | |
|---|---|
protected String[] |
id2tag
|
protected double[][] |
matrix
tag的转移矩阵 |
| 构造方法摘要 | |
|---|---|
CRFModel()
|
|
CRFModel(ITrie<FeatureFunction> featureFunctionTrie)
以指定的trie树结构储存内部特征函数 |
|
| 方法摘要 | |
|---|---|
protected static double |
computeScore(LinkedList<double[]> scoreList,
int tag)
给一系列特征函数结合tag打分 |
LinkedList<double[]> |
computeScoreList(Table table,
int current)
|
Integer |
getTagId(String tag)
获取某个tag的ID |
boolean |
load(ByteArray byteArray)
|
static CRFModel |
loadTxt(String path)
|
static CRFModel |
loadTxt(String path,
CRFModel instance)
|
protected void |
onLoadTxtFinished()
|
void |
save(DataOutputStream out)
写入 |
void |
tag(Table table)
维特比后向算法标注 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected String[] id2tag
protected double[][] matrix
| 构造方法详细信息 |
|---|
public CRFModel()
public CRFModel(ITrie<FeatureFunction> featureFunctionTrie)
featureFunctionTrie - | 方法详细信息 |
|---|
protected void onLoadTxtFinished()
public static CRFModel loadTxt(String path,
CRFModel instance)
public void tag(Table table)
table -
public LinkedList<double[]> computeScoreList(Table table,
int current)
protected static double computeScore(LinkedList<double[]> scoreList,
int tag)
scoreList - tag -
public void save(DataOutputStream out)
throws Exception
ICacheAble 复制的描述
ICacheAble 中的 saveExceptionpublic boolean load(ByteArray byteArray)
ICacheAble 中的 loadpublic static CRFModel loadTxt(String path)
public Integer getTagId(String tag)
tag -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||