Saved Bookmarks
| 1. |
Write down the steps to implement bag of words algorithm. |
|
Answer» The steps to implement bag of words algorithm are as follows: 1. Text Normalisation: Collect data and pre-process it 2. Create Dictionary: Make a list of all the unique words occurring in the corpus. (Vocabulary) 3. Create document vectors: For each document in the corpus, find out how many times the word from the unique list of words has occurred. 4. Create document vectors for all the documents. |
|