A Monte Carlo Framework for Calibrated Uncertainty Estimation in Sequence Prediction