Unsupervised Learning of Sequence Representations by Autoencoders