In<cite> Felbo et al. (2017)</cite> , attention is computed as follows: Here h i ∈ R d is the hidden representation of the LSTM corresponding to the i th word, with N the total number of words in the sentence.