Towards Sharper Generalization Bounds for Structured Prediction