The most widely used method is to employ an encoder-decoder architecture with recurrent neural networks (RNN) to predict the original input sentence or surrounding sentences given an input sentence Ba et al., 2016;Hill et al., 2016;Gan et al., 2017).
the RNN becomes time consuming when the sequence is long.