compute document boosts from the so frequency