In this paper, we propose a simple and efficient model for using retrieved sentence pairs to guide an existing NMT model at test time.
the model collects n-grams occurring in the retrieved target sentences that also match words that overlap between the input and retrieved source sentences, which we will refer to as "translation pieces" (e.g., in Figure 1, the blue part of the retrieved target sentence is collected as translation pieces for the input sentence).