debug("    # zero matches for '%s'\n", context.get(0));
} else {</BUG>
coverage++;
}
double p = (double) (firstWordCount + 1) / (totalTokenCount + 1);
<BUG>debug("    P for %s: %.20f\n", context.get(0), p);
</BUG>
for (int i = 2; i <= context.size(); i++) {
List<String> subList = context.subList(0, i);
long phraseCount = lm.getCount(subList);

Probability getPseudoProbability(List<String> context) {
int maxCoverage = 0;
int coverage = 0;
long firstWordCount = lm.getCount(context.get(0));
maxCoverage++;
if (firstWordCount > 0) {
coverage++;
}
double p = (double) (firstWordCount + 1) / (totalTokenCount + 1);
debug("    P for %s: %.20f (%d)\n", context.get(0), p, firstWordCount);
for (int i = 2; i <= context.size(); i++) {
List<String> subList = context.subList(0, i);
long phraseCount = lm.getCount(subList);
