M-L captures this notion using the difference in the cross-entropies according to each language model (LM).
for a sentence s i , we compute where H tgt is the cross-entropy under the indomain language model and H gen is the crossentropy under the general domain LM.