Luong et al. (2015) score decoder-encoder alignments in three ways. The simplest is the dot product: states that point the same way get high scores, with no extra parameters.
Implement dot_score(h_t, h_s), the dot product of the decoder and encoder states.
Compute the dot product of the two vectors.
No results yet
Run your code to check it against the examples, or submit to run every test.