Then, for each document containing q in the collection, the KL-divergence between the DIR-based document model and the MLE-based query model is computed.
the score of a document d for a query q is defined as follows.