this.masterTrainingInstanceListEvaluation = masterTrainingInstanceListEvaluation;
}
public void trainAndEval()
{
JarafeMETrainer trainer = new JarafeMETrainer(gaussianPrior);
Collection<TrainingInstance> trainingInstanceSet =
//getTrainingSplitList();
getMasterTrainingInstanceListTraining();
for (TrainingInstance currentTrainingInstance : trainingInstanceSet)
{
Set<String> featureSet = currentTrainingInstance.getFeatureSet();
List<String> featureList = new ArrayList<String>(featureSet);
trainer.addTrainingInstance(currentTrainingInstance.getExpectedValue(), featureList);
}
String model = trainer.train();
//For testing: print out the model as a string -Alex Yeh
writeModelToFile(model, trainingDirectory, "i2b2.model");
// decoding