Examples of sortGrammar()


Examples of joshua.decoder.ff.tm.Grammar.sortGrammar()

      normalizePosteriorCountInGrammar(bathGrammar);
     
      //TODO: this will *correctly* write the regular grammar, instead of the GLUE grammar, but we should avoid this
      ((MonolingualGrammar) bathGrammar).writeGrammarOnDisk(outGrammarFile, this.symbolTable);
     
      bathGrammar.sortGrammar(this.p_l_feat_functions);
    }
  }
 
 
  private void accumulatePosteriorCountInGrammar(Grammar grammar) {
View Full Code Here

Examples of joshua.decoder.ff.tm.Grammar.sortGrammar()

           
      // Sort the TM grammars (needed to do cube pruning)
      for (GrammarFactory grammarFactory : this.grammarFactories) {
        if (grammarFactory instanceof Grammar) {
          Grammar batchGrammar = (Grammar) grammarFactory;
          batchGrammar.sortGrammar(this.featureFunctions);
        }
      }
     
     
      this.decoderFactory = new DecoderFactory(
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.