Skip to main content
. Author manuscript; available in PMC: 2019 Jul 1.
Published in final edited form as: Proc Conf Assoc Comput Linguist Meet. 2018 Jul;2018:2225–2235.

Algorithm 2.

FUSION

1: procedure FUSION BRANCH
2:  Horizontal Fusion (HF)
3: for i ∈ [1, N] do
4:   t_Viweighted(t_αi, t_hi)
5:   w_hiweighted(w_αi, w_αi)
6:   Vidense([t_Vi, w_Vi])
7: end for
8:  Vertical Fusion (VF)
9: for i ∈ [1, N] do
10:   hidense([t_hi, w_hi])
11:   s_αiaverage([t_αi, w_αi])
12:   Viweighted(hi, s_αi)
13: end for
14:  Fine-tuning Attention Fusion (FAF)
15: for i ∈ [1, N] do
16:   u_eigetEnergies(hi)
17:   u_αigetDistribution(u_ei, s_αi)
18:   Viweighted(hi, u_αi)
19: end for
20:  Decision Making
21: EconvNet(V1, V2,…, VN)
22: return E
23: end procedure