|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.model.maxent.Context
public class Context
将参数与特征关联起来的类,用来储存最大熵的参数,也用来储存模型和经验分布
| 字段摘要 | |
|---|---|
protected int[] |
outcomes
输出(标签) |
protected double[] |
parameters
参数 |
| 构造方法摘要 | |
|---|---|
Context(int[] outcomePattern,
double[] parameters)
构建一个新的上下文 |
|
| 方法摘要 | |
|---|---|
int[] |
getOutcomes()
获取输出 |
double[] |
getParameters()
获取参数 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected double[] parameters
protected int[] outcomes
| 构造方法详细信息 |
|---|
public Context(int[] outcomePattern,
double[] parameters)
outcomePattern - 输出parameters - 参数| 方法详细信息 |
|---|
public int[] getOutcomes()
public double[] getParameters()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||