Structured prediction with indirect supervision