January 2019
Intermediate to advanced
294 pages
6h 43m
English
When we have text as input data, we can't go ahead and work with raw text. Hence, it's imperative for that text input data to get converted into numbers or vectors of numbers, in order to make it usable for a number of algorithms.
A bag of words model is one of the ways to make the text usable for the algorithms. Essentially, it is a representation of text that works on the occurrence of words in the document. It has nothing to do with the structure, order, and location; this model only looks for the count of the words as a feature.
The thought process behind this model is that having similar content means having a similar document.
The different steps to be taken in the bag of words model are as follows:
Read now
Unlock full access