The bag-of-words model is a way of representing text data when modeling text with machine learning algorithms.

Source: A Gentle Introduction to the Bag-of-Words Model