Text this: Physics-enhanced neural networks for equation-of-state calculations