Package joshua.decoder.ff.tm

Examples of joshua.decoder.ff.tm.GrammarFactory


  private void initializeTranslationGrammars(String tm_file)
  throws IOException {
    grammarFactories = new GrammarFactory[2];
   
    // Glue Grammar
    GrammarFactory glueGrammar =
      //new MemoryBasedBatchGrammarWithPrune(
      new MonolingualGrammar(
        "monolingual",
        p_symbolTable,
        JoshuaConfiguration.glue_file,
        JoshuaConfiguration.phrase_owner,
        JoshuaConfiguration.default_non_terminal,
        JoshuaConfiguration.goal_symbol,
        -1,
        runEM);
   
    grammarFactories[0] = glueGrammar;
   
    // Regular TM Grammar
    GrammarFactory regularGrammar =
      //new MemoryBasedBatchGrammarWithPrune(
      new MonolingualGrammar(
        "monolingual",
        p_symbolTable, tm_file,
        JoshuaConfiguration.phrase_owner,
View Full Code Here

TOP

Related Classes of joshua.decoder.ff.tm.GrammarFactory

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.