public class LogLinearModel extends LinearModel
featureMap, parameter| Constructor and Description |
|---|
LogLinearModel(String modelFile)
加载CRF模型
|
LogLinearModel(String txtFile,
String binFile)
加载txt,转换为bin
|
| Modifier and Type | Method and Description |
|---|---|
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 in interface ICacheAbleload in class LinearModelpublic FeatureTemplate[] getFeatureTemplateArray()
Copyright © 2014–2021 码农场. All rights reserved.