TensorFlow implementation of multi-layer recurrent neural networks for training and sampling from texts