The bag-of-words model is widely used in natural language processing and information retrieval (IR). It is also used rather often in methods of document classification where the frequency of occurrence of every word is used as a feature for training a classifier. The bag-of-words model is also used for computer vision.