Multi-output structured learning