Machine Translation. https://github.com/harvard-ml-courses/cs287-s18/blob/master/HW3/Homework3.ipynb