CopyNet is a seq2seq-based model proposed in the ‘Incorporating Copying Mechanism in Sequence-to-Sequence Learning’.
The prediction can be seen as the combination of generating from the vocabulary and copying from the source.
I wonder how to deal with the sequence of a source.  That is, how to index the vocabulary and the source especially the overlap of both sets?