October 2018
Intermediate to advanced
472 pages
10h 57m
English
So, the last time we created our word2vec model, we dumped that model into a binary file. Now it's time to use that model as part of our CNN model. We perform this by initializing the W weights in the embeddings to these values.
Since we trained on a very small corpus in our previous word2vec model, let's choose the word2vec model that was pre-trained on the huge corpus. A good strategy is to use fastText embedding, which is trained on documents available online and for 294 languages (https://github.com/facebookresearch/fastText/blob/master/pretrained-vectors.md). We do this as follows:
Read now
Unlock full access