接上节课没讲完的word2vec

word2vec(续)

训练策略:

SGD

CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2

Word2vec使用SGD训练存在的问题:

每次只有窗口内的词会参与训练,梯度矩阵太稀疏,训练效率低。

CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2

优化方法:

1.negative sampling
转化为二分类问题

CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2

2.hierarchical softmax

Glove

CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2

公式推导参考这里

词向量评估

CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2CS224n(winter 2019)笔记——Lecture2

词向量存在的问题

多义词

CS224n(winter 2019)笔记——Lecture2

相关文章:

  • 2021-08-01
  • 2019-05-23
  • 2021-11-09
  • 2018-06-19
  • 2021-11-18
  • 2021-12-10
  • 2019-11-05
  • 2019-11-24
猜你喜欢
  • 2021-11-06
  • 2021-11-02
  • 2021-11-06
  • 2021-11-12
  • 2021-11-12
  • 2021-12-22
  • 2021-08-07
  • 2021-10-08
相关资源
相似解决方案