Machine Learning, NLP, Data Science, Technology, Productivity.
becomes: [0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0] Similarly, I’ll update the rest of the words as well and the vector representation for the first sentence would be: [0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] The same will be repeated for all other sentences as well. Code