Implementation of Macherey et al.: "Lattice-based Minimum Error Rate Training for Statistical Machine Translation". This is independent of any existing code in a way, so could be programmed in any programming language. (may be written in any fast programming language)