A machine-learning method hallucinates its way to better text translation