//==== loop
HyperGraphFactory hgFactory = new HyperGraphFactory(curHypFilePrefix, referenceFiles, MRConfig.ngramStateID, symbolTbl, true);
hgFactory.startLoop();
for(int sentID=0; sentID< this.numTrainingSentence; sentID ++){
HGAndReferences res = hgFactory.nextHG();
reranker.rankHG(res.hg);//reset best pointer and transition prob
String hypSent = kbestExtractor.getKthHyp(res.hg.goalNode, 1, -1, null, null);
double bleu = BLEU.computeSentenceBleu(res.referenceSentences, hypSent);
bleuSum += bleu;