sg.edu.nus.comp.nlp.ims.classifiers
Class CGISModelTrainer

java.lang.Object
  extended by sg.edu.nus.comp.nlp.ims.classifiers.CGISModelTrainer
All Implemented Interfaces:
IModelTrainer

public class CGISModelTrainer
extends java.lang.Object
implements IModelTrainer

call maxent with GIS kernel to train model for instances of a lexelt.

Author:
zhongzhi

Field Summary
protected  int m_Cutoff
           
protected  int m_Iteration
           
protected  boolean m_PrintMessages
           
protected  boolean m_Smoothing
           
protected  double m_SmoothingObservation
           
 
Constructor Summary
CGISModelTrainer()
           
 
Method Summary
 void setOptions(java.lang.String[] options)
          set options
 java.lang.Object train(java.lang.Object p_Lexelt)
          train a model with instances in p_Lexelt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Iteration

protected int m_Iteration

m_Cutoff

protected int m_Cutoff

m_SmoothingObservation

protected double m_SmoothingObservation

m_PrintMessages

protected boolean m_PrintMessages

m_Smoothing

protected boolean m_Smoothing
Constructor Detail

CGISModelTrainer

public CGISModelTrainer()
Method Detail

setOptions

public void setOptions(java.lang.String[] options)
Description copied from interface: IModelTrainer
set options

Specified by:
setOptions in interface IModelTrainer
Parameters:
options - options

train

public java.lang.Object train(java.lang.Object p_Lexelt)
                       throws java.lang.Exception
Description copied from interface: IModelTrainer
train a model with instances in p_Lexelt

Specified by:
train in interface IModelTrainer
Parameters:
p_Lexelt - lexelt
Returns:
model
Throws:
java.lang.Exception - train exception