Memory Networks (Weston et al., 2014) store sentences as memory embeddings. To answer a question, the model scores every memory against the question embedding, then reads the memories that match.
Implement memory_match(u, M), the dot product of the question with each memory row.
Multiply the memory matrix by the question vector.
No results yet
Run your code to check it against the examples, or submit to run every test.