public void generate(String configFile, String[] featureFiles, String trainDir, String inputExt, String mode, int bIdx, int eIdx) throws Exception
{
String[] trainFiles = UTFile.getSortedFileListBySize(trainDir, inputExt, true), devFiles;
Element eConfig = UTXml.getDocumentElement(new FileInputStream(configFile));
JointFtrXml[] xmls = getFeatureTemplates(featureFiles);
IDeveloper generator = getDeveloper(mode);
int i;
try
{
for (i=bIdx; i<eIdx; i++)
{
devFiles = new String[]{trainFiles[i]};
generator.develop(eConfig, xmls, trainFiles, devFiles, mode, true, i);
}
}
catch (Exception e) {e.printStackTrace();}
}