Search⌘ K
AI Features

Skip-gram

Explore the skip-gram embedding model and its process of generating target-context word pairs for training. Understand how it differs from CBOW, especially in handling rare words and training data efficiency, and learn to implement skip-gram pairs for NLP applications.

Chapter Goals

  • Learn about the types of models used to create embeddings
  • Understand the difference between the skip-gram and CBOW models

A. Embedding models

In the previous chapter, we discussed how embedding vectors are based on target words and context windows. Specifically, we use these target words and context windows to create training pairs. Depending on the type of embedding model we use, the pairs will either be ...