Deep learning for translation