Text this: Advancing theoretical understanding and practical performance of signal processing for nonlinear optical communications through machine learning