| Package | Description |
|---|---|
| com.hankcs.hanlp.model.crf.crfpp |
这个包下面是由Zhifa Chen移植的CRF++。
做了一些注释、修改与debug。本来想自己移植的,后来发现已经有移植版,所以就没有浪费时间重复造轮子。 关于理论,请参考《CRF++代码分析》。 这份代码(含CRF++和darts-java)的许可证是LGPL & Modified BSD,需注明如下版权声明: |
| Modifier and Type | Field and Description |
|---|---|
List<Path> |
Node.lpath |
protected List<List<Path>> |
FeatureIndex.pathList_ |
List<Path> |
Node.rpath |
| Modifier and Type | Method and Description |
|---|---|
List<List<Path>> |
FeatureIndex.getPathList_() |
| Modifier and Type | Method and Description |
|---|---|
void |
FeatureIndex.calcCost(Path path)
计算转移特征函数的代价
|
| Modifier and Type | Method and Description |
|---|---|
void |
FeatureIndex.setPathList_(List<List<Path>> pathList_) |
Copyright © 2014–2021 码农场. All rights reserved.