To be clear, the weighted bag-of-words is a powerful application of the contextual salience measurement, CoSal, but is certainly not the only one.
(In practice, this can also be applied outside of language, for the importance of other semantic vectors in context)