A Note on Learning Rare Events in Molecular Dynamics using LSTM and Transformer