The first step in computing c i is to compute how much to focus on each encoder state, how relevant each encoder state is to the decoder state captured in h d i−1 . We capture relevance by computing-at each state i during decoding-a score(h d i−1 , h e j ) for each encoder state j.