Text this: Fast maximum a posteriori inference in Monte Carlo state spaces