Text this: Machine learning methods for optical communications