A Bag-Of-Words Model

A simple way to represent text data where each word is represented by a number without considering the order of the words.

A Bag-Of-Words Model

Areas of application

  • Natural Language Processing
  • Text Analytics
  • Information Retrieval
  • Machine Learning
  • Data Mining

Example

For example, a bag-of-words model could be used to analyze a collection of news articles and count the frequency of certain keywords, such as ‘election’, ‘candidate’, and ‘voter’.