Lifting Weak Supervision To Structured Prediction