Text this: Amortized inference and model learning for probabilistic programming