Task Loss Estimation for Structured Prediction