Since domain-specific and domain-shared contexts have different effects on NMT, and thus should be distinguished and separately captured by NMT model.
we first leverage the sentence representations E r (x) and E s (x) to generate two gating vectors, g r i and g s i , for annotation h i in the following way: where W * gr , W * gs , b gr and b gs denote the relevant matrices and bias, respectively.