Machines learn how to help humans communicate smarter