Training + inference of a transformer inside an email