com.hankcs.hanlp.model.maxent
类 Context

java.lang.Object
  继承者 com.hankcs.hanlp.model.maxent.Context

public class Context
extends Object

将参数与特征关联起来的类,用来储存最大熵的参数,也用来储存模型和经验分布


字段摘要
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
 

字段详细信息

parameters

protected double[] parameters
参数


outcomes

protected int[] outcomes
输出(标签)

构造方法详细信息

Context

public Context(int[] outcomePattern,
               double[] parameters)
构建一个新的上下文

参数:
outcomePattern - 输出
parameters - 参数
方法详细信息

getOutcomes

public int[] getOutcomes()
获取输出

返回:
输出数组

getParameters

public double[] getParameters()
获取参数

返回:
参数数组


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.