Structured prediction