Natural Language Processing · free preview
Dense Embeddings with Skip-Gram
Short dense vectors trained by binary classification on context pairs, negative sampling from a smoothed unigram distribution, and the analogy and bias properties of embedding spaces.
1. Dense Embeddings with Skip-Gram
Dense Embeddings with Skip-Gram
2. Negative sampling and its loss
Negative sampling and its loss
3. Training skip-gram in NumPy
Training skip-gram in NumPy
4. Skip-gram probability from a dot product
A target and context embedding have dot product . Compute the classifier's probability and round to three decimals.
5. Smoothing the noise distribution
A two-word lexicon has unigram probabilities and . Compute the smoothed probability of the frequent word under , that is and round to three decimals.
6. Skip-gram loss for one pair
A positive pair has and each of the noise words has . Compute the loss and round to three decimals.
7. Which way does the target move?
A training pair has label and the classifier currently outputs . According to the update , what happens to the dot product after the step?
8. Dense versus sparse, and structure
Which set of statements about static embeddings is correct?
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free