Learning message-passing inference machines for structured prediction | Synapse