Package joshua.decoder.ff.lm.srilm

Examples of joshua.decoder.ff.lm.srilm.LMGrammarSRILM


    } else if (JoshuaConfiguration.use_srilm) {
      if (JoshuaConfiguration.use_left_equivalent_state
      || JoshuaConfiguration.use_right_equivalent_state) {
        throw new IllegalArgumentException("using SRILM, we cannot use suffix/prefix stuff");
      }
      this.languageModel = new LMGrammarSRILM(
        (SrilmSymbol)this.symbolTable,
        JoshuaConfiguration.lmOrder,
        JoshuaConfiguration.lm_file);
     
    } else if (JoshuaConfiguration.use_bloomfilter_lm) {
View Full Code Here


    if (use_srilm) {
      if (use_left_euqivalent_state || use_right_euqivalent_state) {
        throw new IllegalArgumentException("when using local srilm, we cannot use suffix stuff");
      }
      p_symbolTable = new SrilmSymbol(remote_symbol_tbl, g_lm_order);
      p_lm = new LMGrammarSRILM((SrilmSymbol)p_symbolTable, g_lm_order, lm_file);
     
    } else {
      //p_lm = new LMGrammar_JAVA(g_lm_order, lm_file, use_left_euqivalent_state);
      //big bug: should load the consistent symbol files
      p_symbolTable = new BuildinSymbol(remote_symbol_tbl);
View Full Code Here

TOP

Related Classes of joshua.decoder.ff.lm.srilm.LMGrammarSRILM

Copyright © 2018 www.massapicom. 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.