| 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 |
|---|---|
Node |
Path.lnode |
Node |
Node.prev |
Node |
Path.rnode |
| Modifier and Type | Field and Description |
|---|---|
protected List<List<Node>> |
FeatureIndex.nodeList_ |
| Modifier and Type | Method and Description |
|---|---|
Node |
TaggerImpl.node(int i,
int j) |
| Modifier and Type | Method and Description |
|---|---|
List<List<Node>> |
TaggerImpl.getNode_() |
List<List<Node>> |
FeatureIndex.getNodeList_() |
| Modifier and Type | Method and Description |
|---|---|
void |
Path.add(Node _lnode,
Node _rnode) |
void |
FeatureIndex.calcCost(Node node)
计算状态特征函数的代价
|
void |
TaggerImpl.set_node(Node n,
int i,
int j) |
| Modifier and Type | Method and Description |
|---|---|
void |
TaggerImpl.setNode_(List<List<Node>> node_) |
void |
FeatureIndex.setNodeList_(List<List<Node>> nodeList_) |
Copyright © 2014–2021 码农场. All rights reserved.