Pointer networks (Vinyals et al., 2015) output a position in the input rather than a word from a fixed vocabulary. The output is a softmax over the input positions, so the vocabulary can change with every input.
Implement pointer_distribution(scores), a stable softmax over the input positions.
Subtract the maximum score, exponentiate, and normalize.
No results yet
Run your code to check it against the examples, or submit to run every test.