An End-to-End Discriminative Approach to Machine Translation