For emotion classification, since emotion words are relatively more important for final predic-tions, we adopt the widely used attention mechanism (Bahdanau et al., 2014) to select the key words for sentence representation.
we first take the final hidden state h n as a sentence summary vector z, and then obtain the attention weight α i for each hidden state h j as follows: where W h , W z ∈ R a×d and v ∈ R a are learnable parameters.