Word vector embeddings
Instead of one-hot encoded vectors, word vector embeddings can be used to represent the words in a dense space of dimensionality much lower than that of the one-hot encoded vectors. The word vector embedding for a word w can be represented by vw ∈ Rm, where m is the dimensionality of the word vector embeddings. As we can see, while each component of a one-hot encoded vector can take up only binary values of {0,1}, a component of the word vector embedding can take up any real number, and hence has a much denser representation. The notions of similarity and analogy are also related to word vector embeddings.
Word vector embeddings are generally trained through techniques such as the continuous-bag-of-words method, skip-gram, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access