Conformal prediction for text infilling and part-of-speech prediction