プリンキピア

第15章自然言語処理:事前学習

15.1.6. Exercises15.1.6 練習問題

  1. What is the computational complexity for calculating each gradient? What could be the issue if the dictionary size is huge?
    英語のヒント
    各勾配を計算する計算量はどれだけか。辞書の大きさがとても大きいと、何が問題になりうるか。
  2. Some fixed phrases in English consist of multiple words, such as “new york”. How to train their word vectors? Hint: see Section 4 in the word2vec paper (Mikolov et al., 2013).
    英語のヒント
    英語の決まった言い回しには、「new york」のように複数の単語からなるものがある。それらの単語ベクトルはどう訓練すればよいか。ヒント:word2vecの論文(Mikolov et al., 2013)の第4節を見よ。
  3. Let’s reflect on the word2vec design by taking the skip-gram model as an example. What is the relationship between the dot product of two word vectors in the skip-gram model and the cosine similarity? For a pair of words with similar semantics, why may the cosine similarity of their word vectors (trained by the skip-gram model) be high?
    英語のヒント
    スキップグラムモデルを例にとって、word2vecの設計を振り返ろう。スキップグラムモデルでの二つの単語ベクトルの内積とコサイン類似度の間にはどんな関係があるか。意味の似た単語の組について、(スキップグラムモデルで訓練した)それらの単語ベクトルのコサイン類似度が高くなりうるのはなぜか。