Loss function for the neural translation machine