| Package | Description |
|---|---|
| com.hankcs.hanlp.model | |
| com.hankcs.hanlp.model.crf |
| Modifier and Type | Class and Description |
|---|---|
class |
CRFSegmentModel
静态CRF分词模型
|
| Modifier and Type | Method and Description |
|---|---|
static CRFModel |
CRFModel.load(String path)
加载CRF++模型
如果存在缓存的话,优先读取缓存,否则读取txt,并且建立缓存 |
static CRFModel |
CRFModel.loadBin(String path)
加载Bin形式的CRF++模型
注意该Bin形式不是CRF++的二进制模型,而是HanLP由CRF++的文本模型转换过来的私有格式 |
static CRFModel |
CRFModel.loadTxt(String path)
加载Txt形式的CRF++模型
同时生成path.bin模型缓存 |
static CRFModel |
CRFModel.loadTxt(String path,
CRFModel instance)
加载Txt形式的CRF++模型
|
| Modifier and Type | Method and Description |
|---|---|
static CRFModel |
CRFModel.loadTxt(String path,
CRFModel instance)
加载Txt形式的CRF++模型
|
Copyright © 2014–2021 码农场. All rights reserved.