类 com.hankcs.hanlp.model.maxent.MaxEntModel
的使用

使用 MaxEntModel 的软件包
com.hankcs.hanlp.model.maxent   
 

com.hankcs.hanlp.model.maxentMaxEntModel 的使用
 

返回 MaxEntModelcom.hankcs.hanlp.model.maxent 中的方法
static MaxEntModel MaxEntModel.create(ByteArray byteArray)
          从字节流快速加载
static MaxEntModel MaxEntModel.create(String path)
          从文件加载,同时缓存为二进制文件
static MaxEntModel MaxEntModel.load(String txtPath)
          加载最大熵模型
如果存在缓存的话,优先读取缓存,否则读取txt,并且建立缓存
 



Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.