The λ can be learned from a training corpus using an Expectation Maximization (EM) algorithm.
we estimate λ by maximizing the likelihood of all training instances, given the bigram or biterm model: BP and P(t 1 ) are ignored because they do not affect λ .