Now that we know how to train word embeddings, we can also extend these methodologies to have a document embedding. We will explore how to do this in the following sections.
Using doc2vec for sentiment analysis
Getting ready
In the previous sections about word2vec methods, we managed to capture positional relationships between words. What we have not done is capture the relationship of words to the document (or movie review) that they come from. One extension of word2vec that captures a document effect is called doc2vec.
The basic idea of doc2vec is to introduce document embedding, along with the word embeddings that may help to capture the tone of the document. For example, just knowing that the words movie and love are...