Permalink
Browse files

made oov word prob configurable at runtime

  • Loading branch information...
1 parent 6f32cfc commit cd5516b2531999ff32e0a0273b0c354f62ca2fc0 adampauls committed Jun 19, 2012
View
Binary file not shown.
@@ -87,6 +87,7 @@ public LMGrammarBerkeley(int order, String lm_file) {
lm = ArrayEncodedCachingLmWrapper.wrapWithCacheThreadSafe(berkeleyLm);
}
+ lm.setOovWordLogProb((float) (-1.0f * JoshuaConfiguration.lm_ceiling_cost));
this.unkIndex = lm.getWordIndexer().getOrAddIndex(lm.getWordIndexer().getUnkSymbol());
}

0 comments on commit cd5516b

Please sign in to comment.