public class LogLinearModel extends LinearModel
featureMap, parameter| 构造器和说明 |
|---|
LogLinearModel(String modelFile)
加载CRF模型
|
LogLinearModel(String txtFile,
String binFile)
加载txt,转换为bin
|
| 限定符和类型 | 方法和说明 |
|---|---|
FeatureTemplate[] |
getFeatureTemplateArray() |
boolean |
load(ByteArray byteArray)
载入
|
public LogLinearModel(String modelFile) throws IOException
modelFile - HanLP的.bin格式,或CRF++的.txt格式(将会自动转换为model.txt.bin,下次会直接加载.txt.bin)IOExceptionpublic LogLinearModel(String txtFile, String binFile) throws IOException
txtFile - txtbinFile - binIOExceptionpublic boolean load(ByteArray byteArray)
ICacheAbleload 在接口中 ICacheAbleload 在类中 LinearModelpublic FeatureTemplate[] getFeatureTemplateArray()
Copyright © 2014–2019 码农场. All rights reserved.