code: protected double backgroundProb(Token tok) 
  	{
  		Integer freqInteger = (Integer)backgroundFrequency.get(tok);
  		double freq = freqInteger==null ? 0 : freqInteger.intValue();
  		return freq/totalTokens;
  	}
docs: Probability of token in the background language model