public class CRFModel extends Model
| Modifier and Type | Field and Description |
|---|---|
static String |
version |
allFeatureCount, config, featureTree, logger, status| Constructor and Description |
|---|
CRFModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkModel(String modelPath)
判断当前数据流是否是本实例
|
CRFModel |
loadModel(InputStream is) |
CRFModel |
loadModel(String modelPath)
不同的模型实现自己的加载模型类
|
getConfig, getFeature, load, load, printFeatureTree, tagRate, writeModelpublic static final String version
public CRFModel loadModel(String modelPath) throws Exception
Modelpublic CRFModel loadModel(InputStream is) throws Exception
public boolean checkModel(String modelPath)
ModelcheckModel in class ModelCopyright © 2017. All rights reserved.