The general score adds a learned matrix between the two states. It lets the decoder and encoder live in different spaces and still be compared.
Implement general_score(h_t, W, h_s), the bilinear alignment score.
Multiply the decoder state by the matrix, then dot with the encoder state.
No results yet
Run your code to check it against the examples, or submit to run every test.