| Package | Description |
|---|---|
| com.hankcs.hanlp.dependency | |
| com.hankcs.hanlp.model.maxent |
| Constructor and Description |
|---|
MaxEntDependencyParser(MaxEntModel model)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static MaxEntModel |
MaxEntModel.create(ByteArray byteArray)
从字节流快速加载
|
static MaxEntModel |
MaxEntModel.create(String path)
从文件加载,同时缓存为二进制文件
|
static MaxEntModel |
MaxEntModel.load(String txtPath)
加载最大熵模型
如果存在缓存的话,优先读取缓存,否则读取txt,并且建立缓存 |
Copyright © 2014–2021 码农场. All rights reserved.