Examples of rankHG()


Examples of joshua.discriminative.ranker.HGRanker.rankHG()

    //==== 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;
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.