Text this: Optimization of physical quantities in the autoencoder latent space