Transformer Model for Learning