Imported from https://github.com/neulab/compare-mt
