public interface Trainer
Interface of CRF trainer
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
FeatureGenerator |
getFeatureGenerator()
Gets the feature generator
|
int |
getMaxIteration()
Gets the number of maximum iterations
|
ModelGraph |
getModelGraph()
Gets the model graph
|
double[] |
getModelParameter()
Gets the parameters of the CRF model
|
boolean |
needScaling()
Gets the scaling option.
|
boolean |
saveModelParameter(String filename)
Saves the parameters of the CRF model to a text file
|
void |
setMaxIteration(int maxIteration)
Sets the number of maximum iterations
|
void |
setScalingOption(boolean option)
Sets the scaling option
|
boolean |
train(Dataset dataset)
Trains the CRF model with labeled dataset
|
ModelGraph getModelGraph()
FeatureGenerator getFeatureGenerator()
double[] getModelParameter()
boolean saveModelParameter(String filename)
filename - the name of the file the model parameters will save toboolean train(Dataset dataset)
dataset - the dataset for trainingboolean needScaling()
void setScalingOption(boolean option)
option - the scaling optionint getMaxIteration()
void setMaxIteration(int maxIteration)
maxIteration - the number of maximum iterationsCopyright © 2018 JULIE Lab, Germany. All rights reserved.