Text this: Thermo-optical liquid-crystal phase modulator for ultrafast optics, driven by neural network