To refine the semantic encoding of tokenized recommendation paths, semantic imitation makes tokenized recommendation paths imitates the golden utterance statement of correct recommendation and coherent explanation. Given the encoded conversation context \(o_{C}\)  and the hidden state \(o_{\mathcal {P}}=\left\lbrace o_{\mathcal {P}, i}\right\rbrace _{i=1}^{N_{p}}\)  of the tokenized recommendation paths encoding, we apply attention [1]} to the \(o_{\mathcal {P}}\)  to obtain the context-based path aggregation representation \(o_{S, \mathcal {P}}=\operatorname{Attention}\left(o_{\mathcal {P}}, z\left(W_{S, \mathcal {P}} o_{C}\right)\right)\) ,
where \(z(\cdot )\)  is the tanh function, \(W_{S,\mathcal {P}}\)  is the parameter matrix.
