sg.edu.nus.comp.nlp.ims.classifiers
Class CGISModelTrainer
java.lang.Object
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
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 |
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
CGISModelTrainer
public CGISModelTrainer()
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