perceptronModel.put(baselineFeatName, 1.0);
System.out.println("feature set size is " + perceptronModel.size());
}else{
System.out.println("In perceptron, should specify feature set");
}
optimizer = new DefaultPerceptron(perceptron_sum_model, perceptron_avg_model,train_size, batch_update_size, converge_pass, init_gain, sigma, is_minimize_score);
hgdl = new HGDiscriminativeLearner(optimizer, new HashSet<String>(perceptronModel.keySet()));
hgdl.reset_baseline_feat();
}
//#####begin to do training