train(s_configFile, s_featureFiles.split(DELIM_FILENAME), s_trainDir, s_modelDir);
}
public void train(String configFile, String[] featureFiles, String trainDir, String modelDir)
{
AbstractNLPTrainer trainer = getTrainer(s_mode);
String[] trainFiles = UTFile.getSortedFileListBySize(trainDir, ".*", true);
try
{
Element eConfig = UTXml.getDocumentElement(new FileInputStream(configFile));
JointFtrXml[] xmls = getFeatureTemplates(featureFiles);
trainer.train(eConfig, xmls, trainFiles, modelDir);
}
catch (Exception e) {e.printStackTrace();}
}