Natural Language Processing · 免费预览
稠密嵌入与「Skip-Gram」
通过在上下文对上进行二分类训练得到的短稠密向量、从平滑一元语法分布中进行负采样的方法,以及嵌入空间的类比与偏见性质。
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?