Attention: Attention can be obtained based on the above input representation.
an attention weight α i for the context word x i is computed based on the alignment function: where M ∈ R d×d is the general learning matrix suggested by Luong et al.