Word 2 vec
In the word 2 vec, we have two types CBOW and Skip-gram In Cbow we try to predict the target word by using neighbor context words. In Skip Gram, we try to predict context words from the target. Cbow working: Word 2 vec is trained on Wikipedia data but to demonstrate the working on Cbow, lets take simple sentence - "Hope can set you free". let's consider a window size of 3. So here input will be "hope" and "set", and the output is "can". since this is cbow, here we try to predict the target word by using context words. so here in this sentence, we will try to predict the word "can" by using context words "hope" and "set". in the input, we pass the one-hot encoding of words "hope" and "set" and by using a neural network, we will try to predict the target word "can". here in between the input and hidden layer, we have a 3X5 matrix as weight. here our neural network updates weights...