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,