We use the pointer-generator network (See et al., 2017) for the copy mechanism.
the binary variable z t is calculated from the context vector c t , the decoder state d t and the decoder input y t−1 : where vectors w c , w d , w y and the scalar b ptr are learnable parameters, and σ is the sigmoid func-tion.