String outGrammarPrefix=args[2].trim();
int maxNumIter = new Integer(args[3].trim());
double relativeLikelihoodThreshold = 1e-5;
int maxConvergeNum = 10000;
DefaultEM p_trainer= new StructuredLMEM(maxNumIter, relativeLikelihoodThreshold, maxConvergeNum, f_joshua_config, f_dev_src, outGrammarPrefix);
p_trainer.runEM();
}