s
c
o
r
e
(
a
d
j
i
,
a
s
p
e
c
t
)
=
W
[
P
(
d
1
)
;
P
(
d
2
)
;
h
a
d
j
i
;
h
a
s
p
e
c
t
]
+
b
score(adj_i, aspect) = W[P(d_1); P(d_2);h_{adj_i}; h_{aspect}] + b
score(adji,aspect)=W[P(d1);P(d2);hadji;haspect]+b
a
a
d
j
i
=
e
x
p
s
c
o
r
e
(
a
d
j
i
,
a
s
p
e
c
t
)
∑
j
=
1
K
e
x
p
s
c
o
r
e
(
a
d
j
j
,
a
s
p
e
c
t
)
a_{adj_i}=\frac{exp^{score(adj_i, aspect)}}{\sum_{j=1}^Kexp^{score(adj_j, aspect)}}
aadji=∑j=1Kexpscore(adjj,aspect)expscore(adji,aspect)
h
a
s
p
e
c
t
a
d
j
=
∑
i
=
1
K
a
a
d
j
i
h
a
d
j
i
h_{aspect}^{adj}=\sum_{i=1}^Ka_{adj_i}h_{adj_i}
haspectadj=i=1∑Kaadjihadji
h
ˉ
a
s
p
e
c
t
=
L
i
n
e
a
r
(
[
h
a
s
p
e
c
t
;
h
a
s
p
e
c
t
a
d
j
]
)
\bar{h}_{aspect} = Linear([h_{aspect}; h_{aspect}^{adj}])
hˉaspect=Linear([haspect;haspectadj])
2020-12-31
最新推荐文章于 2021-01-01 20:14:38 发布