Text this: Symplectic machine learning model for fast simulation of space-charge effects