赞
踩
Mikolov T, Sutskever I, Chen K, et al. Distributed representations of words and phrases and their compositionality[C]// International Conference on Neural Information Processing Systems. Curran Associates Inc. 2013:3111-3119.
context | word | target |
---|---|---|
orange | juice | 1 |
orange | king | 0 |
orange | book | 0 |
orange | the | 0 |
orange | of | 0 |
Skip-grams 中softmax函数定义:
P
(
t
a
r
g
e
t
∣
c
o
n
t
e
n
t
)
=
e
θ
t
T
e
c
∑
j
=
1
10000
e
θ
j
T
e
c
P(target|content)=\frac{e^{\theta_{t}^{T}e_{c}}}{\sum^{10000}_{j=1}{e^{\theta^{T}_{j}e_{c}}}}
P(target∣content)=∑j=110000eθjTeceθtTec
本节算法定义 输入Context为c,Word为t,定义输出Target为y
context | word | target |
---|---|---|
c | t | y |
x 1 x_1 x1 | x 2 x_2 x2 | y |
orange | juice | 1 |
orange | king | 0 |
orange | book | 0 |
orange | the | 0 |
orange | of | 0 |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。