We use a CNN to encode each document following what is now a fairly standard approach consisting of an embedding layer, a convolution layer, a max-pooling layer, and an output layer (Collobert et al., 2011;Kim, 2014).
in our architecture, the CNN additionally aids in getting interme-diate representations for the multi-head matching network component (Section 3.2).