How can i add weights in a bag of words model in text analysis?
One possible solution is to introduce prior counts for words (higher counts for words that are more important) that could be added to the term-document matrix.

An alternative solution is to compute tf-idf features (weights that modify word counts based on frequency) and apply additional weighting to tf-idf with higher weights corresponding to important words.