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