Word-Generation-with-Attention Word / sentence generation with Markov Chains, trainable RNN and encoder-decoders; applications in image caption generation and classification tasks