jmaxent
Class Model

java.lang.Object
  extended by jmaxent.Model

public class Model
extends java.lang.Object

The Class Model.


Field Summary
 Data data
          The data.
 Dictionary dict
          The dict.
 Evaluation evaluation
          The evaluation.
 FeatureGen feaGen
          The fea gen.
 Inference inference
          The inference.
 Option option
          The option.
 Train train
          The train.
 
Constructor Summary
Model()
          Instantiates a new model.
Model(Option option, Data data, Dictionary dict, FeatureGen feaGen, Train train, Inference inference, Evaluation evaluation)
          Instantiates a new model.
 
Method Summary
 void doInference(java.util.List data)
          Do inference.
 void doTrain(java.io.PrintWriter fout)
          Do train.
 void initInference()
          Inits the inference.
 void updateFeatures()
          Update features.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

option

public Option option
The option.


data

public Data data
The data.


dict

public Dictionary dict
The dict.


feaGen

public FeatureGen feaGen
The fea gen.


train

public Train train
The train.


inference

public Inference inference
The inference.


evaluation

public Evaluation evaluation
The evaluation.

Constructor Detail

Model

public Model()
Instantiates a new model.


Model

public Model(Option option,
             Data data,
             Dictionary dict,
             FeatureGen feaGen,
             Train train,
             Inference inference,
             Evaluation evaluation)
Instantiates a new model.

Parameters:
option - the option
data - the data
dict - the dict
feaGen - the fea gen
train - the train
inference - the inference
evaluation - the evaluation
Method Detail

doTrain

public void doTrain(java.io.PrintWriter fout)
Do train.

Parameters:
fout - the fout

updateFeatures

public void updateFeatures()
Update features.


initInference

public void initInference()
Inits the inference.


doInference

public void doInference(java.util.List data)
Do inference.

Parameters:
data - the data