3  BoW represents text as a vector by creating a vocabulary of all unique words in a corpus and counting the frequency of each word in a document. While simple and effective, BoW disregards word order and context, treating documents as collections of independent words.